結果

問題 No.773 コンテスト
ユーザー GodNegotoGodNegoto
提出日時 2019-11-16 10:54:01
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 397 bytes
コンパイル時間 3,946 ms
コンパイル使用メモリ 75,088 KB
実行使用メモリ 57,696 KB
最終ジャッジ日時 2023-10-25 03:48:54
合計ジャッジ時間 8,423 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
57,496 KB
testcase_01 WA -
testcase_02 AC 131 ms
57,544 KB
testcase_03 AC 132 ms
57,332 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 140 ms
57,072 KB
testcase_08 AC 136 ms
57,360 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 131 ms
57,416 KB
testcase_15 WA -
testcase_16 AC 129 ms
57,200 KB
testcase_17 AC 131 ms
57,612 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 119 ms
56,212 KB
testcase_22 WA -
testcase_23 AC 139 ms
57,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package algo;

import java.util.*;

public class sample1 {
	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int A = sc.nextInt();
	int B = sc.nextInt();
	List<Integer> list = new ArrayList<>();
	list.add(23);
	list.add(24);
	list.add(25);
	int cnt = 3;
	for(int l : list) {
		if(A == l) {
			cnt--;
		}
		if(B == l) {
			cnt--;
		}
	}
	System.out.println(cnt);
	}
}
0