結果

問題 No.218 経験値1.5倍
ユーザー HEGO55HEGO55
提出日時 2017-05-17 15:01:36
言語 Java19
(openjdk 21)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 435 bytes
コンパイル時間 1,912 ms
コンパイル使用メモリ 72,240 KB
実行使用メモリ 56,356 KB
最終ジャッジ日時 2023-08-28 14:33:22
合計ジャッジ時間 7,108 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,980 KB
testcase_01 AC 125 ms
56,352 KB
testcase_02 AC 123 ms
56,128 KB
testcase_03 AC 123 ms
56,012 KB
testcase_04 AC 123 ms
56,104 KB
testcase_05 AC 124 ms
55,828 KB
testcase_06 AC 123 ms
55,788 KB
testcase_07 AC 122 ms
55,964 KB
testcase_08 AC 123 ms
55,508 KB
testcase_09 AC 121 ms
55,836 KB
testcase_10 AC 125 ms
55,824 KB
testcase_11 AC 123 ms
55,664 KB
testcase_12 AC 123 ms
56,356 KB
testcase_13 AC 121 ms
55,924 KB
testcase_14 AC 126 ms
55,940 KB
testcase_15 AC 127 ms
55,792 KB
testcase_16 AC 126 ms
55,528 KB
testcase_17 AC 122 ms
55,528 KB
testcase_18 AC 124 ms
55,908 KB
testcase_19 AC 129 ms
56,112 KB
testcase_20 AC 123 ms
55,916 KB
testcase_21 AC 125 ms
55,820 KB
testcase_22 AC 125 ms
55,524 KB
testcase_23 AC 125 ms
56,072 KB
testcase_24 AC 124 ms
55,844 KB
testcase_25 AC 124 ms
56,040 KB
testcase_26 AC 125 ms
55,684 KB
testcase_27 AC 120 ms
56,028 KB
testcase_28 AC 124 ms
55,364 KB
testcase_29 AC 124 ms
56,040 KB
testcase_30 AC 126 ms
55,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class Test36{
	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++;
		}
		
		while(d>0){
			d -= c;
			count2++;	
		}
		
		if((count2)*3<=(count1)*2){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
	}
}
0