結果

問題 No.773 コンテスト
ユーザー GodNegotoGodNegoto
提出日時 2019-11-16 11:03:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 407 bytes
コンパイル時間 4,938 ms
コンパイル使用メモリ 75,648 KB
実行使用メモリ 57,636 KB
最終ジャッジ日時 2023-10-25 03:50:51
合計ジャッジ時間 7,860 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
57,436 KB
testcase_01 AC 128 ms
57,608 KB
testcase_02 AC 129 ms
57,524 KB
testcase_03 AC 131 ms
57,636 KB
testcase_04 AC 130 ms
57,540 KB
testcase_05 AC 118 ms
56,204 KB
testcase_06 AC 131 ms
57,132 KB
testcase_07 AC 116 ms
56,212 KB
testcase_08 AC 129 ms
57,600 KB
testcase_09 AC 132 ms
57,412 KB
testcase_10 AC 135 ms
57,164 KB
testcase_11 AC 134 ms
57,424 KB
testcase_12 AC 131 ms
57,484 KB
testcase_13 AC 138 ms
57,224 KB
testcase_14 AC 129 ms
57,152 KB
testcase_15 AC 130 ms
57,536 KB
testcase_16 AC 130 ms
57,596 KB
testcase_17 AC 130 ms
57,332 KB
testcase_18 AC 136 ms
57,460 KB
testcase_19 AC 127 ms
57,464 KB
testcase_20 AC 129 ms
57,424 KB
testcase_21 AC 126 ms
57,456 KB
testcase_22 AC 129 ms
57,408 KB
testcase_23 AC 129 ms
57,448 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) {
		for(int i = A; i <= B; i++) {
			if(i == l) {
				cnt--;
			}
		}
	}
	System.out.println(cnt);
	}
}
0