結果

問題 No.218 経験値1.5倍
ユーザー k_kadorak_kadora
提出日時 2015-06-10 22:36:34
言語 Java
(openjdk 23)
結果
AC  
実行時間 152 ms / 2,000 ms
コード長 448 bytes
コンパイル時間 3,920 ms
コンパイル使用メモリ 74,740 KB
実行使用メモリ 41,536 KB
最終ジャッジ日時 2024-12-29 15:08:08
合計ジャッジ時間 9,626 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Exp{
	public static void main(String[] arg){
		double ca;
		int temp,cneed,a,b,c;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		temp = (int)a / (int)b;
		if(a > b * temp)temp++;
		ca = (double)temp * 2 /3;
		cneed = a / c;
		if(a > c * cneed)cneed++;
		if((double)cneed <= ca){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
	}
}
0