結果

問題 No.773 コンテスト
ユーザー GodNegoto
提出日時 2019-11-16 10:54:01
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 397 bytes
コンパイル時間 3,468 ms
コンパイル使用メモリ 75,052 KB
実行使用メモリ 54,520 KB
最終ジャッジ日時 2024-09-24 23:17:29
合計ジャッジ時間 7,166 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 8 WA * 13
権限があれば一括ダウンロードができます

ソースコード

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