結果
| 問題 | No.1829 Möbius Tunnelling |
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2022-02-04 22:13:05 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 2,000 ms |
| + 434µs | |
| コード長 | 500 bytes |
| 記録 | |
| コンパイル時間 | 1,395 ms |
| コンパイル使用メモリ | 84,168 KB |
| 実行使用メモリ | 42,880 KB |
| 最終ジャッジ日時 | 2026-07-25 11:32:43 |
| 合計ジャッジ時間 | 4,507 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt() + n;
sc.close();
if (a < b) {
if (n * 2L + a - c < n) {
System.out.println("Yes");
} else {
System.out.println("No");
}
} else {
if (c - a < n) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
}
ks2m