結果
問題 | No.773 コンテスト |
ユーザー |
|
提出日時 | 2020-01-23 04:53:46 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 114 ms / 2,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 2,066 ms |
コンパイル使用メモリ | 73,744 KB |
実行使用メモリ | 41,540 KB |
最終ジャッジ日時 | 2024-07-18 07:42:37 |
合計ジャッジ時間 | 5,451 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
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); } }