結果

問題 No.218 経験値1.5倍
ユーザー HEGO55
提出日時 2017-05-17 14:48:27
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 448 bytes
コンパイル時間 3,239 ms
コンパイル使用メモリ 74,852 KB
実行使用メモリ 56,096 KB
最終ジャッジ日時 2024-09-17 12:47:22
合計ジャッジ時間 7,947 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

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