Submission #347139
Source Code Expand
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; class Myon { public Myon() { } public static int Main() { new Myon().calc(); return 0; } void calc() { Scanner cin = new Scanner(); int[] nums = { cin.nextInt(), cin.nextInt(), cin.nextInt() }; Console.WriteLine(nums.Sum() - nums.Min() - nums.Max()); } } class Scanner { string[] s; int i; char[] cs = new char[] { ' ' }; public Scanner() { s = new string[0]; i = 0; } public string next() { if (i < s.Length) return s[i++]; string st = Console.ReadLine(); while (st == "") st = Console.ReadLine(); s = st.Split(cs, StringSplitOptions.RemoveEmptyEntries); i = 0; return s[i++]; } public int nextInt() { return int.Parse(next()); } public long nextLong() { return long.Parse(next()); } public double nextDouble() { return double.Parse(next()); } } class XRand { uint x, y, z, w; public XRand() { init(); } public XRand(uint s) { init(); init_xor128(s); } void init() { x = 314159265; y = 358979323; z = 846264338; w = 327950288; } public void init_xor128(uint s) { z ^= s; z ^= z >> 21; z ^= z << 35; z ^= z >> 4; z *= 736338717; } uint next() { uint t = x ^ x << 11; x = y; y = z; z = w; return w = w ^ w >> 19 ^ t ^ t >> 8; } public long nextLong(long m) { return (long)((((ulong)next() << 32) + next()) % (ulong)m); } public int nextInt(int m) { return (int)(next() % m); } public long nextLong(long min, long max) { return min + nextLong(max - min + 1); } public int nextInt(int min, int max) { return min + nextInt(max - min + 1); } public int nextIntP(int a) { return (int)Math.Pow(a, nextDouble()); } public int nextIntP(int min, int max) { int diff = max - min; return min + nextIntP(diff + 2) - 1; } public long nextLongP(long a) { return (long)Math.Pow(a, nextDouble()); } public long nextLongP(long min, long max) { long diff = max - min; return min + nextLongP(diff + 2) - 1; } public double nextDouble() { return (double)next() / uint.MaxValue; } public double nextDoubleP(double a) { return Math.Pow(a, nextDouble()); } }
Submission Info
Submission Time | |
---|---|
Task | A - 高橋くんと年齢 |
User | chokudai |
Language | C# (Mono 2.10.8.1) |
Score | 100 |
Code Size | 2804 Byte |
Status | AC |
Exec Time | 178 ms |
Memory | 8664 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 | 169 ms | 8632 KB |
1.txt | AC | 168 ms | 8536 KB |
10.txt | AC | 167 ms | 8580 KB |
11.txt | AC | 166 ms | 8524 KB |
12.txt | AC | 168 ms | 8536 KB |
13.txt | AC | 171 ms | 8624 KB |
14.txt | AC | 171 ms | 8536 KB |
15.txt | AC | 170 ms | 8592 KB |
16.txt | AC | 173 ms | 8524 KB |
17.txt | AC | 176 ms | 8508 KB |
18.txt | AC | 167 ms | 8532 KB |
19.txt | AC | 176 ms | 8636 KB |
2.txt | AC | 176 ms | 8536 KB |
3.txt | AC | 170 ms | 8532 KB |
4.txt | AC | 170 ms | 8556 KB |
5.txt | AC | 165 ms | 8540 KB |
6.txt | AC | 166 ms | 8540 KB |
7.txt | AC | 169 ms | 8560 KB |
8.txt | AC | 166 ms | 8536 KB |
9.txt | AC | 169 ms | 8648 KB |
subtask0_sample_01.txt | AC | 178 ms | 8536 KB |
subtask0_sample_02.txt | AC | 166 ms | 8576 KB |
subtask0_sample_03.txt | AC | 167 ms | 8664 KB |
subtask0_sample_04.txt | AC | 166 ms | 8660 KB |