結果
問題 | No.218 経験値1.5倍 |
ユーザー | HEGO55 |
提出日時 | 2017-05-17 14:48:27 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 448 bytes |
コンパイル時間 | 2,548 ms |
コンパイル使用メモリ | 74,348 KB |
実行使用メモリ | 57,824 KB |
最終ジャッジ日時 | 2023-10-17 15:02:46 |
合計ジャッジ時間 | 7,616 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 122 ms
57,396 KB |
testcase_08 | AC | 120 ms
57,252 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 123 ms
57,356 KB |
testcase_14 | WA | - |
testcase_15 | AC | 125 ms
57,360 KB |
testcase_16 | WA | - |
testcase_17 | AC | 124 ms
57,496 KB |
testcase_18 | AC | 122 ms
57,568 KB |
testcase_19 | WA | - |
testcase_20 | AC | 128 ms
57,524 KB |
testcase_21 | AC | 124 ms
57,284 KB |
testcase_22 | AC | 125 ms
57,368 KB |
testcase_23 | AC | 124 ms
57,364 KB |
testcase_24 | WA | - |
testcase_25 | AC | 123 ms
57,392 KB |
testcase_26 | WA | - |
testcase_27 | AC | 127 ms
57,112 KB |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | AC | 123 ms
57,072 KB |
ソースコード
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int count1 = 0; int count2 = 0; int d = a; while(a>0){ a -= b; count1++; } double e = count1*(2/3); while(d>0){ d -= c; count2++; } if(count2<=e){ System.out.println("YES"); }else{ System.out.println("NO"); } } }