結果

問題 No.218 経験値1.5倍
ユーザー ぴろずぴろず
提出日時 2015-05-29 22:24:54
言語 Java19
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 398 bytes
コンパイル時間 2,735 ms
コンパイル使用メモリ 71,668 KB
実行使用メモリ 56,128 KB
最終ジャッジ日時 2023-08-28 14:03:41
合計ジャッジ時間 7,851 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,304 KB
testcase_01 AC 120 ms
55,656 KB
testcase_02 AC 126 ms
55,520 KB
testcase_03 AC 123 ms
55,336 KB
testcase_04 AC 123 ms
55,604 KB
testcase_05 AC 123 ms
53,516 KB
testcase_06 AC 123 ms
55,528 KB
testcase_07 AC 124 ms
55,628 KB
testcase_08 AC 123 ms
55,424 KB
testcase_09 AC 123 ms
55,708 KB
testcase_10 AC 122 ms
55,472 KB
testcase_11 AC 121 ms
55,392 KB
testcase_12 AC 124 ms
55,532 KB
testcase_13 AC 123 ms
55,544 KB
testcase_14 AC 122 ms
55,576 KB
testcase_15 AC 120 ms
55,564 KB
testcase_16 AC 122 ms
55,632 KB
testcase_17 AC 121 ms
55,736 KB
testcase_18 AC 123 ms
55,272 KB
testcase_19 AC 124 ms
55,476 KB
testcase_20 AC 122 ms
55,784 KB
testcase_21 AC 120 ms
55,464 KB
testcase_22 AC 120 ms
56,040 KB
testcase_23 AC 120 ms
53,768 KB
testcase_24 AC 123 ms
55,616 KB
testcase_25 AC 124 ms
55,588 KB
testcase_26 AC 123 ms
56,128 KB
testcase_27 AC 122 ms
55,464 KB
testcase_28 AC 122 ms
55,716 KB
testcase_29 AC 123 ms
55,572 KB
testcase_30 AC 125 ms
55,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no218;

import java.util.Scanner;

public 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 normal = (a + b - 1) / b;
		int campaign = (a + c - 1) / c;
		if (normal * 2 >= campaign * 3) {
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
	}

}
0