結果

問題 No.481 1から10
ユーザー youthfuldays072youthfuldays072
提出日時 2018-06-16 22:35:07
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 487 bytes
コンパイル時間 1,879 ms
コンパイル使用メモリ 71,364 KB
実行使用メモリ 56,636 KB
最終ジャッジ日時 2023-09-13 06:16:58
合計ジャッジ時間 3,769 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
56,468 KB
testcase_01 AC 118 ms
56,636 KB
testcase_02 AC 118 ms
55,444 KB
testcase_03 AC 117 ms
56,504 KB
testcase_04 AC 116 ms
56,320 KB
testcase_05 AC 116 ms
56,356 KB
testcase_06 AC 118 ms
55,756 KB
testcase_07 AC 118 ms
56,028 KB
testcase_08 AC 119 ms
56,164 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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 ;
			}
		}
	}

}

0