結果

問題 No.218 経験値1.5倍
ユーザー HEGO55HEGO55
提出日時 2017-05-17 14:43:16
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 441 bytes
コンパイル時間 2,033 ms
コンパイル使用メモリ 73,884 KB
実行使用メモリ 41,712 KB
最終ジャッジ日時 2024-09-17 12:35:49
合計ジャッジ時間 6,420 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 18 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class Test36{
	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 count1 = 0;
		int count2 = 0;
		int d = a;
		
		while(a>0){
			a -= b;
			count1++;
		}
		
		while(d>0){
			d -= c;
			count2++;
			
		}
		
		if(count2>=(count1*(2/3))){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
	}
}
0