結果
| 問題 |
No.218 経験値1.5倍
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-30 14:01:18 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 672 bytes |
| コンパイル時間 | 2,155 ms |
| コンパイル使用メモリ | 74,876 KB |
| 実行使用メモリ | 41,996 KB |
| 最終ジャッジ日時 | 2024-10-02 08:09:05 |
| 合計ジャッジ時間 | 7,733 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 WA * 6 |
ソースコード
package yukicoder218;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
double a,b,c;
a=sc.nextDouble();
b=sc.nextDouble();
c=sc.nextDouble();
//通常必要経験値 a/b
//キャンペーン中 a/c
// a/c<=a/b*2/3
// 1/c<=1/b*2/3
// 3b<=2c
if(3*a/c<=(a/b)*2){
if(a/c!=(int)(a/c)){
if(3*((int)(a/c)+1)>(a/b)*2){
System.err.println(((int)(a/c)+1));
System.err.println((a/b)*2);
System.out.println("NO");
}else{
System.out.println("YES");
}
}else{
System.out.println("YES");
}
}else{
System.out.println("NO");
}
}
}