結果

問題 No.218 経験値1.5倍
ユーザー 37zigen37zigen
提出日時 2016-03-30 13:51:03
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 595 bytes
コンパイル時間 1,938 ms
コンパイル使用メモリ 74,584 KB
実行使用メモリ 56,340 KB
最終ジャッジ日時 2024-04-10 06:29:10
合計ジャッジ時間 7,024 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 113 ms
53,728 KB
testcase_07 AC 131 ms
53,584 KB
testcase_08 AC 117 ms
53,516 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 130 ms
54,132 KB
testcase_14 AC 121 ms
54,144 KB
testcase_15 AC 122 ms
53,688 KB
testcase_16 WA -
testcase_17 AC 132 ms
54,268 KB
testcase_18 AC 130 ms
54,564 KB
testcase_19 WA -
testcase_20 AC 128 ms
54,272 KB
testcase_21 AC 123 ms
54,008 KB
testcase_22 AC 124 ms
54,080 KB
testcase_23 AC 133 ms
53,200 KB
testcase_24 AC 131 ms
54,296 KB
testcase_25 AC 130 ms
53,980 KB
testcase_26 WA -
testcase_27 AC 127 ms
54,104 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 129 ms
54,364 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
		
		if(3*a/c<=(a/b)*2){
			if(a/c!=(int)(a/c)){
				if((int)a/c+1>(a/b)*(2/3)){
					System.out.println("NO");
				}else{
					System.out.println("YES");
				}
			}else{
				System.out.println("YES");
			}
		}else{
			System.out.println("NO");
		}
	}
}
0