結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
youthfuldays072
|
| 提出日時 | 2018-06-16 22:35:07 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 487 bytes |
| コンパイル時間 | 1,889 ms |
| コンパイル使用メモリ | 73,980 KB |
| 実行使用メモリ | 41,676 KB |
| 最終ジャッジ日時 | 2024-06-30 16:27:31 |
| 合計ジャッジ時間 | 3,722 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 WA * 1 |
ソースコード
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<9;i++) {
if(used[i]==false) {
System.out.println(i+1);
return ;
}
}
}
}
youthfuldays072