結果
| 問題 |
No.218 経験値1.5倍
|
| コンテスト | |
| ユーザー |
ルッツファン
|
| 提出日時 | 2015-11-28 11:20:52 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 81 ms / 2,000 ms |
| コード長 | 1,116 bytes |
| コンパイル時間 | 3,809 ms |
| コンパイル使用メモリ | 74,032 KB |
| 実行使用メモリ | 50,804 KB |
| 最終ジャッジ日時 | 2024-12-29 15:27:02 |
| 合計ジャッジ時間 | 6,137 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
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");
}
}
}
ルッツファン