結果
| 問題 | No.481 1から10 |
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-11-11 18:24:23 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 2,000 ms |
| + 867µs | |
| コード長 | 422 bytes |
| 記録 | |
| コンパイル時間 | 1,927 ms |
| コンパイル使用メモリ | 83,908 KB |
| 実行使用メモリ | 43,460 KB |
| 最終ジャッジ日時 | 2026-08-23 11:43:31 |
| 合計ジャッジ時間 | 3,075 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
boolean[] used = new boolean[11];
for (int i = 0; i < 9; i++) {
used[sc.nextInt()] = true;
}
for (int i = 1; i <= 10; i++) {
if (!used[i]) {
System.out.println(i);
return;
}
}
}
}
tenten