結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
youthfuldays072
|
| 提出日時 | 2018-06-16 22:36:54 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 132 ms / 2,000 ms |
| コード長 | 488 bytes |
| コンパイル時間 | 2,087 ms |
| コンパイル使用メモリ | 74,416 KB |
| 実行使用メモリ | 41,640 KB |
| 最終ジャッジ日時 | 2024-06-30 16:27:27 |
| 合計ジャッジ時間 | 3,825 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
import java.util.Arrays;
import java.util.Scanner;
public class Main{
int[] L;
int N;
long K;
public static void main(String[] args) {
Main main=new Main();
main.run();
}
void run() {
Scanner sc=new Scanner(System.in);
boolean [] used=new boolean[10];
Arrays.fill(used,false);
for(int i=0;i<9;i++) {
int buf=sc.nextInt()-1;
used[buf]=true;
}
for(int i=0;i<10;i++) {
if(used[i]==false) {
System.out.println(i+1);
return ;
}
}
}
}
youthfuldays072