結果

問題 No.218 経験値1.5倍
ユーザー ルッツファンルッツファン
提出日時 2015-11-28 11:20:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 1,116 bytes
コンパイル時間 3,040 ms
コンパイル使用メモリ 71,720 KB
実行使用メモリ 50,120 KB
最終ジャッジ日時 2023-08-28 14:19:04
合計ジャッジ時間 5,641 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,172 KB
testcase_01 AC 43 ms
49,268 KB
testcase_02 AC 44 ms
49,284 KB
testcase_03 AC 44 ms
49,332 KB
testcase_04 AC 43 ms
49,192 KB
testcase_05 AC 44 ms
49,292 KB
testcase_06 AC 45 ms
49,448 KB
testcase_07 AC 43 ms
49,340 KB
testcase_08 AC 44 ms
49,204 KB
testcase_09 AC 45 ms
49,336 KB
testcase_10 AC 44 ms
49,280 KB
testcase_11 AC 44 ms
49,100 KB
testcase_12 AC 44 ms
49,196 KB
testcase_13 AC 43 ms
49,232 KB
testcase_14 AC 46 ms
50,052 KB
testcase_15 AC 47 ms
50,028 KB
testcase_16 AC 46 ms
49,980 KB
testcase_17 AC 43 ms
49,120 KB
testcase_18 AC 43 ms
49,096 KB
testcase_19 AC 56 ms
50,120 KB
testcase_20 AC 43 ms
49,172 KB
testcase_21 AC 44 ms
49,212 KB
testcase_22 AC 43 ms
49,576 KB
testcase_23 AC 43 ms
49,188 KB
testcase_24 AC 42 ms
49,340 KB
testcase_25 AC 44 ms
49,236 KB
testcase_26 AC 43 ms
49,236 KB
testcase_27 AC 43 ms
49,500 KB
testcase_28 AC 43 ms
49,316 KB
testcase_29 AC 45 ms
48,996 KB
testcase_30 AC 43 ms
49,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class yukicoder017 {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String tes = null;
		
		try {
			tes = br.readLine();
			} catch (IOException e) {
				// TODO 自動生成された catch ブロック
				e.printStackTrace();
		}
		
		
		int a = Integer.parseInt(tes);
		try {
			tes = br.readLine();
			} catch (IOException e) {
				// TODO 自動生成された catch ブロック
				e.printStackTrace();
		}
		
		
		int b = Integer.parseInt(tes);
		
		try {
			tes = br.readLine();
			} catch (IOException e) {
				// TODO 自動生成された catch ブロック
				e.printStackTrace();
		}
		
		
		int c = Integer.parseInt(tes);
		
		int max = a;
		
		int bcount=0,ccount=0;
		
		while(max>0){
			max = max - b;
			bcount++;
		}
		
		max = a;
		
		while(max>0){
			max = max - c;
			ccount++;
		}
		
		if(((bcount*2)/3) >= ccount){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
		
	}

}
0