結果

問題 No.773 コンテスト
ユーザー 37zigen37zigen
提出日時 2020-01-23 04:53:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 378 bytes
コンパイル時間 3,792 ms
コンパイル使用メモリ 72,040 KB
実行使用メモリ 56,520 KB
最終ジャッジ日時 2023-09-25 09:26:07
合計ジャッジ時間 6,919 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,880 KB
testcase_01 AC 123 ms
56,520 KB
testcase_02 AC 125 ms
53,872 KB
testcase_03 AC 126 ms
55,696 KB
testcase_04 AC 123 ms
55,984 KB
testcase_05 AC 122 ms
55,928 KB
testcase_06 AC 123 ms
55,780 KB
testcase_07 AC 125 ms
55,880 KB
testcase_08 AC 125 ms
53,956 KB
testcase_09 AC 125 ms
55,412 KB
testcase_10 AC 123 ms
55,560 KB
testcase_11 AC 122 ms
55,628 KB
testcase_12 AC 122 ms
54,192 KB
testcase_13 AC 122 ms
56,120 KB
testcase_14 AC 126 ms
55,732 KB
testcase_15 AC 123 ms
55,724 KB
testcase_16 AC 124 ms
56,076 KB
testcase_17 AC 124 ms
56,200 KB
testcase_18 AC 125 ms
55,496 KB
testcase_19 AC 123 ms
55,444 KB
testcase_20 AC 122 ms
56,292 KB
testcase_21 AC 123 ms
55,920 KB
testcase_22 AC 126 ms
55,476 KB
testcase_23 AC 124 ms
55,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;

class Main{
	public static void main(String[] args){
		new Main().run();
	}
	
	void run(){
		Scanner sc=new Scanner(System.in);
		int[] a=new int[99];
		a[23]++;
		a[24]++;
		a[25]++;
		int A=sc.nextInt();
		int B=sc.nextInt();
		for(int i=A;i<=B;++i)a[i]--;
		int ans=0;
		for(int i=23;i<=25;++i)ans+=a[i];
		System.out.println(ans);
	}
}
0