結果

問題 No.218 経験値1.5倍
ユーザー 37zigen37zigen
提出日時 2016-03-30 14:07:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 581 bytes
コンパイル時間 1,834 ms
コンパイル使用メモリ 71,372 KB
実行使用メモリ 56,636 KB
最終ジャッジ日時 2023-08-28 14:21:58
合計ジャッジ時間 7,221 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
55,852 KB
testcase_01 AC 130 ms
55,812 KB
testcase_02 AC 134 ms
55,780 KB
testcase_03 AC 133 ms
56,156 KB
testcase_04 AC 132 ms
56,220 KB
testcase_05 AC 134 ms
55,988 KB
testcase_06 AC 131 ms
56,056 KB
testcase_07 AC 133 ms
55,916 KB
testcase_08 AC 131 ms
56,072 KB
testcase_09 AC 133 ms
55,712 KB
testcase_10 AC 133 ms
56,420 KB
testcase_11 AC 136 ms
56,284 KB
testcase_12 AC 134 ms
56,248 KB
testcase_13 AC 133 ms
56,504 KB
testcase_14 AC 133 ms
55,588 KB
testcase_15 AC 133 ms
55,824 KB
testcase_16 AC 134 ms
56,064 KB
testcase_17 AC 133 ms
56,468 KB
testcase_18 AC 132 ms
55,956 KB
testcase_19 AC 133 ms
55,836 KB
testcase_20 AC 136 ms
56,032 KB
testcase_21 AC 131 ms
56,096 KB
testcase_22 AC 134 ms
55,988 KB
testcase_23 AC 133 ms
56,012 KB
testcase_24 AC 132 ms
55,712 KB
testcase_25 AC 137 ms
55,820 KB
testcase_26 AC 134 ms
55,928 KB
testcase_27 AC 136 ms
56,536 KB
testcase_28 AC 134 ms
56,100 KB
testcase_29 AC 133 ms
56,636 KB
testcase_30 AC 134 ms
55,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder218;
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		double a,b,c;
		a=sc.nextDouble();
		b=sc.nextDouble();
		c=sc.nextDouble();
		//通常必要経験値 a/b
		//キャンペーン中 a/c
		//   a/c<=a/b*2/3
		//   1/c<=1/b*2/3
		//   3b<=2c
		
		double d,e;
		if(a/c!=(int)(a/c)){
			d=(int)(a/c)+1;
		}else{
			d=a/c;
		}
		if(a/b!=(int)(a/b)){
			e=(int)(a/b)+1;
		}else{
			e=a/b;
		}
		if(3*d<=2*e){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
	}
}
0