結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
tanzaku
|
| 提出日時 | 2017-02-10 22:47:07 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 139 ms / 2,000 ms |
| コード長 | 593 bytes |
| コンパイル時間 | 3,408 ms |
| コンパイル使用メモリ | 79,536 KB |
| 実行使用メモリ | 41,404 KB |
| 最終ジャッジ日時 | 2024-12-28 08:24:32 |
| 合計ジャッジ時間 | 5,541 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class _481 {
public static void main(String[] args) throws IOException {
new _481().solve();
}
void solve() throws IOException {
try (final Scanner in = new Scanner(System.in)) {
for (int i = 1; i < 10; i++) {
if (in.nextInt() != i) {
System.out.println(i);
return;
}
}
System.out.println(10);
}
}
// for debug
static void dump(Object... o) {
System.err.println(Arrays.deepToString(o));
}
}
tanzaku