結果
| 問題 |
No.1027 U+1F4A0
|
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2020-04-17 21:25:26 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 2,000 ms |
| コード長 | 462 bytes |
| コンパイル時間 | 2,154 ms |
| コンパイル使用メモリ | 73,800 KB |
| 実行使用メモリ | 41,764 KB |
| 最終ジャッジ日時 | 2024-10-03 11:04:55 |
| 合計ジャッジ時間 | 6,042 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int d1 = sc.nextInt();
double d2 = sc.nextInt();
sc.close();
if (d1 > d2) {
System.out.println(0);
} else if (d1 == d2) {
System.out.println(4);
} else if (d1 < d2 / 2) {
System.out.println(0);
} else if (d1 == d2 / 2) {
System.out.println(4);
} else {
System.out.println(8);
}
}
}
ks2m