Submission #350219
Source Code Expand
using System; using System.IO; using System.Linq; using System.Text; using System.Diagnostics; using System.Collections.Generic; using System.Text.RegularExpressions; using Enu = System.Linq.Enumerable; class Program { void Solve() { Console.WriteLine(reader.IntArray(3).OrderBy(x => x).ElementAt(1)); } Reader reader = new Reader(Console.In); static void Main() { new Program().Solve(); } } class Reader { private readonly TextReader reader; private readonly char[] separator = { ' ' }; private readonly StringSplitOptions removeOp = StringSplitOptions.RemoveEmptyEntries; private string[] A = new string[0]; private int i; public Reader(TextReader r) { reader = r; } public Reader(string file) { reader = new StreamReader(file); } public bool HasNext() { return Enqueue(); } public string String() { return Dequeue(); } public int Int() { return int.Parse(Dequeue()); } public long Long() { return long.Parse(Dequeue()); } public double Double() { return double.Parse(Dequeue()); } public int[] IntLine() { var s = Line(); return s == "" ? new int[0] : Array.ConvertAll(Split(s), int.Parse); } public int[] IntArray(int N) { return Enu.Range(0, N).Select(i => Int()).ToArray(); } public int[][] IntGrid(int H) { return Enu.Range(0, H).Select(i => IntLine()).ToArray(); } public string[] StringArray(int N) { return Enu.Range(0, N).Select(i => Line()).ToArray(); } public string Line() { return reader.ReadLine().Trim(); } private string[] Split(string s) { return s.Split(separator, removeOp); } private bool Enqueue() { if (i < A.Length) return true; string line = reader.ReadLine(); if (line == null) return false; if (line == "") return Enqueue(); A = Split(line); i = 0; return true; } private string Dequeue() { Enqueue(); return A[i++]; } }
Submission Info
Submission Time | |
---|---|
Task | A - 高橋くんと年齢 |
User | eitaho |
Language | C# (Mono 2.10.8.1) |
Score | 100 |
Code Size | 1984 Byte |
Status | AC |
Exec Time | 141 ms |
Memory | 9220 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask0_sample_04.txt |
All | 0.txt, 1.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask0_sample_04.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0.txt | AC | 140 ms | 9164 KB |
1.txt | AC | 141 ms | 9164 KB |
10.txt | AC | 138 ms | 9164 KB |
11.txt | AC | 134 ms | 9164 KB |
12.txt | AC | 136 ms | 9164 KB |
13.txt | AC | 137 ms | 9128 KB |
14.txt | AC | 139 ms | 9160 KB |
15.txt | AC | 137 ms | 9196 KB |
16.txt | AC | 137 ms | 9160 KB |
17.txt | AC | 136 ms | 9164 KB |
18.txt | AC | 138 ms | 9220 KB |
19.txt | AC | 136 ms | 9164 KB |
2.txt | AC | 139 ms | 9200 KB |
3.txt | AC | 136 ms | 9164 KB |
4.txt | AC | 136 ms | 9164 KB |
5.txt | AC | 140 ms | 9164 KB |
6.txt | AC | 141 ms | 9124 KB |
7.txt | AC | 137 ms | 9164 KB |
8.txt | AC | 138 ms | 9152 KB |
9.txt | AC | 137 ms | 9164 KB |
subtask0_sample_01.txt | AC | 135 ms | 9164 KB |
subtask0_sample_02.txt | AC | 136 ms | 9128 KB |
subtask0_sample_03.txt | AC | 138 ms | 9164 KB |
subtask0_sample_04.txt | AC | 138 ms | 9164 KB |