結果
| 問題 |
No.773 コンテスト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-20 01:59:47 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 138 ms / 2,000 ms |
| コード長 | 428 bytes |
| コンパイル時間 | 2,021 ms |
| コンパイル使用メモリ | 74,296 KB |
| 実行使用メモリ | 41,832 KB |
| 最終ジャッジ日時 | 2024-10-12 13:42:36 |
| 合計ジャッジ時間 | 6,104 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner in = new Scanner(System.in);
int start = in.nextInt();
int end = in.nextInt();
int count = 3;
for(int i=start; i<=end; i++){
if(i==23 || i==24 || i==25){
count--;
}
}
System.out.println(count);
}
}