結果
問題 | No.218 経験値1.5倍 |
ユーザー |
![]() |
提出日時 | 2015-12-17 14:12:43 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 60 ms / 2,000 ms |
コード長 | 662 bytes |
コンパイル時間 | 2,484 ms |
コンパイル使用メモリ | 75,168 KB |
実行使用メモリ | 50,292 KB |
最終ジャッジ日時 | 2024-12-29 15:29:17 |
合計ジャッジ時間 | 4,829 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader read = new BufferedReader(new InputStreamReader(System.in)); try { int a = Integer.parseInt(read.readLine()); int b = Integer.parseInt(read.readLine()); int c = Integer.parseInt(read.readLine()); int normal = a / b; if (a % b > 0) { ++normal; } int campaign = a / c; if (a % c > 0) { ++campaign; } if (((normal * 2) / 3) >= campaign) { System.out.println("YES"); } else { System.out.println("NO"); } } catch (Exception e) { e.printStackTrace(); } } }