結果

問題 No.218 経験値1.5倍
ユーザー 37zigen37zigen
提出日時 2016-03-30 14:01:18
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 672 bytes
コンパイル時間 2,210 ms
コンパイル使用メモリ 74,268 KB
実行使用メモリ 54,648 KB
最終ジャッジ日時 2024-04-10 06:29:20
合計ジャッジ時間 6,660 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
54,288 KB
testcase_01 AC 123 ms
53,336 KB
testcase_02 AC 127 ms
53,236 KB
testcase_03 AC 111 ms
53,612 KB
testcase_04 AC 123 ms
54,528 KB
testcase_05 AC 123 ms
54,172 KB
testcase_06 AC 113 ms
53,704 KB
testcase_07 AC 153 ms
54,116 KB
testcase_08 AC 116 ms
53,432 KB
testcase_09 AC 124 ms
54,100 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 122 ms
53,988 KB
testcase_14 AC 112 ms
54,520 KB
testcase_15 AC 126 ms
54,012 KB
testcase_16 WA -
testcase_17 AC 130 ms
54,148 KB
testcase_18 AC 132 ms
54,432 KB
testcase_19 AC 116 ms
53,468 KB
testcase_20 AC 118 ms
53,612 KB
testcase_21 AC 129 ms
54,216 KB
testcase_22 AC 122 ms
53,900 KB
testcase_23 AC 129 ms
54,108 KB
testcase_24 AC 129 ms
53,592 KB
testcase_25 AC 132 ms
54,128 KB
testcase_26 WA -
testcase_27 AC 108 ms
53,412 KB
testcase_28 WA -
testcase_29 AC 125 ms
54,168 KB
testcase_30 AC 134 ms
54,368 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(3*((int)(a/c)+1)>(a/b)*2){
					System.err.println(((int)(a/c)+1));
					System.err.println((a/b)*2);
					System.out.println("NO");
				}else{
					System.out.println("YES");
				}
			}else{
				System.out.println("YES");
			}
		}else{
			System.out.println("NO");
		}
	}
}
0