結果
問題 | No.481 1から10 |
ユーザー | yellowstone |
提出日時 | 2017-04-07 12:48:30 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 450 bytes |
コンパイル時間 | 1,963 ms |
コンパイル使用メモリ | 71,948 KB |
実行使用メモリ | 56,424 KB |
最終ジャッジ日時 | 2023-09-22 23:53:50 |
合計ジャッジ時間 | 3,857 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 121 ms
56,072 KB |
testcase_01 | AC | 123 ms
55,776 KB |
testcase_02 | AC | 123 ms
55,504 KB |
testcase_03 | AC | 122 ms
55,964 KB |
testcase_04 | AC | 122 ms
56,376 KB |
testcase_05 | AC | 122 ms
55,788 KB |
testcase_06 | AC | 123 ms
55,720 KB |
testcase_07 | AC | 122 ms
55,924 KB |
testcase_08 | AC | 122 ms
56,288 KB |
testcase_09 | WA | - |
ソースコード
import java.util.*; class Main{ public static void main(String args[]){ Scanner cin = new Scanner(System.in); int result=0; int tmp; for(int i = 1;i<10;i++){ tmp = cin.nextInt(); if(i!=tmp){ result = i; if(!cin.hasNext()&&tmp==9){ result = 10; } break; } } System.out.println(result); } }