Submission #142143
Source Code Expand
using System; using System.Collections; using System.Collections.Generic; using System.Linq; class Myon { public Myon() { } public static int Main() { new Myon().run(); return 0; } void run() { Scanner cin = new Scanner(); int n = cin.nextInt(); if (n % 400 == 0) Console.WriteLine("YES"); else if (n % 100 == 0) Console.WriteLine("NO"); else if (n % 4 == 0) Console.WriteLine("YES"); else Console.WriteLine("NO"); } } 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++]; s = Console.ReadLine().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()); } }
Submission Info
Submission Time | |
---|---|
Task | A - うるう年 |
User | chokudai |
Language | C# (Mono 2.10.8.1) |
Score | 100 |
Code Size | 1167 Byte |
Status | AC |
Exec Time | 139 ms |
Memory | 7480 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_rnd_00.txt, 01_rnd_01.txt, 01_rnd_02.txt, 01_rnd_03.txt, 01_rnd_04.txt, 01_rnd_05.txt, 01_rnd_06.txt, 01_rnd_07.txt, 01_rnd_08.txt, 01_rnd_09.txt, 01_rnd_10.txt, 01_rnd_11.txt, 01_rnd_12.txt, 01_rnd_13.txt, 01_rnd_14.txt, 01_rnd_15.txt, 01_rnd_16.txt, 01_rnd_17.txt, 01_rnd_18.txt, 01_rnd_19.txt, 02_100_00.txt, 02_100_01.txt, 02_100_02.txt, 02_100_03.txt, 02_100_04.txt, 02_100_05.txt, 02_100_06.txt, 02_100_07.txt, 02_100_08.txt, 02_100_09.txt, 02_100_10.txt, 02_100_11.txt, 02_100_12.txt, 02_100_13.txt, 02_100_14.txt, 02_100_15.txt, 02_100_16.txt, 02_100_17.txt, 02_100_18.txt, 02_100_19.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 133 ms | 7444 KB |
00_sample_01.txt | AC | 133 ms | 7400 KB |
00_sample_02.txt | AC | 130 ms | 7400 KB |
00_sample_03.txt | AC | 129 ms | 7460 KB |
01_rnd_00.txt | AC | 130 ms | 7460 KB |
01_rnd_01.txt | AC | 132 ms | 7476 KB |
01_rnd_02.txt | AC | 131 ms | 7460 KB |
01_rnd_03.txt | AC | 131 ms | 7400 KB |
01_rnd_04.txt | AC | 139 ms | 7388 KB |
01_rnd_05.txt | AC | 133 ms | 7448 KB |
01_rnd_06.txt | AC | 131 ms | 7448 KB |
01_rnd_07.txt | AC | 132 ms | 7396 KB |
01_rnd_08.txt | AC | 130 ms | 7476 KB |
01_rnd_09.txt | AC | 134 ms | 7472 KB |
01_rnd_10.txt | AC | 131 ms | 7460 KB |
01_rnd_11.txt | AC | 131 ms | 7396 KB |
01_rnd_12.txt | AC | 133 ms | 7472 KB |
01_rnd_13.txt | AC | 129 ms | 7404 KB |
01_rnd_14.txt | AC | 130 ms | 7396 KB |
01_rnd_15.txt | AC | 130 ms | 7400 KB |
01_rnd_16.txt | AC | 134 ms | 7476 KB |
01_rnd_17.txt | AC | 134 ms | 7396 KB |
01_rnd_18.txt | AC | 130 ms | 7380 KB |
01_rnd_19.txt | AC | 128 ms | 7464 KB |
02_100_00.txt | AC | 131 ms | 7396 KB |
02_100_01.txt | AC | 132 ms | 7464 KB |
02_100_02.txt | AC | 133 ms | 7400 KB |
02_100_03.txt | AC | 131 ms | 7380 KB |
02_100_04.txt | AC | 131 ms | 7460 KB |
02_100_05.txt | AC | 129 ms | 7476 KB |
02_100_06.txt | AC | 131 ms | 7460 KB |
02_100_07.txt | AC | 131 ms | 7392 KB |
02_100_08.txt | AC | 132 ms | 7448 KB |
02_100_09.txt | AC | 130 ms | 7408 KB |
02_100_10.txt | AC | 130 ms | 7400 KB |
02_100_11.txt | AC | 131 ms | 7404 KB |
02_100_12.txt | AC | 131 ms | 7424 KB |
02_100_13.txt | AC | 136 ms | 7456 KB |
02_100_14.txt | AC | 137 ms | 7396 KB |
02_100_15.txt | AC | 136 ms | 7480 KB |
02_100_16.txt | AC | 133 ms | 7396 KB |
02_100_17.txt | AC | 133 ms | 7480 KB |
02_100_18.txt | AC | 131 ms | 7384 KB |
02_100_19.txt | AC | 128 ms | 7400 KB |