結果
| 問題 |
No.2789 hako111223’s Master Thesis
|
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2024-06-21 22:52:34 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 150 ms / 2,000 ms |
| コード長 | 415 bytes |
| コンパイル時間 | 2,297 ms |
| コンパイル使用メモリ | 74,692 KB |
| 実行使用メモリ | 54,664 KB |
| 最終ジャッジ日時 | 2024-06-21 22:52:41 |
| 合計ジャッジ時間 | 5,784 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
sc.close();
int e = b + 31 - a;
if (c <= e) {
System.out.println(1);
} else if (d <= e) {
System.out.println(2);
} else {
System.out.println(3);
}
}
}
ks2m