Submission #3786753
Source Code Expand
using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { // 入力 string[] s2 = System.Console.ReadLine().Trim().Split(' '); int iN = int.Parse(s2[0]); int iM = int.Parse(s2[1]); System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); // 解析 int iOut = 0; for (int i = 1; i <= iN; i++) { if (i != iM) { iOut = i; break; } } // 出力 System.Console.WriteLine("{0}", iOut.ToString().Trim()); sw.Stop(); #if DEBUG Console.WriteLine(); Console.WriteLine("{0}", sw.Elapsed.ToString()); Console.WriteLine("続行するには何かキーを押してください..."); Console.ReadKey(); #endif } }
Submission Info
Submission Time | |
---|---|
Task | A - クイズゲーム |
User | starlightsheep |
Language | C# (Mono 4.6.2.0) |
Score | 100 |
Code Size | 992 Byte |
Status | AC |
Exec Time | 23 ms |
Memory | 13268 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_2-1.txt, test_2-2.txt, test_3-1.txt, test_3-2.txt, test_3-3.txt, test_4-1.txt, test_4-2.txt, test_4-3.txt, test_4-4.txt, test_5-1.txt, test_5-2.txt, test_5-3.txt, test_5-4.txt, test_5-5.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
test_2-1.txt | AC | 22 ms | 9172 KB |
test_2-2.txt | AC | 22 ms | 9172 KB |
test_3-1.txt | AC | 23 ms | 11220 KB |
test_3-2.txt | AC | 23 ms | 11220 KB |
test_3-3.txt | AC | 22 ms | 9172 KB |
test_4-1.txt | AC | 23 ms | 13268 KB |
test_4-2.txt | AC | 22 ms | 9172 KB |
test_4-3.txt | AC | 22 ms | 11220 KB |
test_4-4.txt | AC | 23 ms | 11220 KB |
test_5-1.txt | AC | 23 ms | 11220 KB |
test_5-2.txt | AC | 23 ms | 11220 KB |
test_5-3.txt | AC | 23 ms | 13268 KB |
test_5-4.txt | AC | 23 ms | 11220 KB |
test_5-5.txt | AC | 23 ms | 11220 KB |