結果
問題 | No.481 1から10 |
ユーザー | mouse1114 |
提出日時 | 2018-02-14 14:05:29 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 725 bytes |
コンパイル時間 | 2,467 ms |
コンパイル使用メモリ | 101,516 KB |
実行使用メモリ | 22,840 KB |
最終ジャッジ日時 | 2023-08-23 11:29:01 |
合計ジャッジ時間 | 3,791 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 58 ms
20,800 KB |
testcase_01 | AC | 56 ms
20,648 KB |
testcase_02 | AC | 56 ms
20,916 KB |
testcase_03 | AC | 57 ms
22,748 KB |
testcase_04 | AC | 57 ms
20,804 KB |
testcase_05 | AC | 56 ms
22,776 KB |
testcase_06 | AC | 57 ms
20,840 KB |
testcase_07 | AC | 57 ms
22,840 KB |
testcase_08 | AC | 57 ms
18,868 KB |
testcase_09 | WA | - |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { int Num = 1; int InputNum = 0; string[] str = Console.ReadLine().Split(' '); for (int i = 0; i<9 ; i++) { InputNum = Convert.ToInt32(str[i]); if ( InputNum == Num ) { Num++; } else { Console.WriteLine(Num); break; } } } } }