結果

問題 No.218 経験値1.5倍
ユーザー prog470
提出日時 2015-06-04 01:05:08
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 346 bytes
コンパイル時間 1,075 ms
コンパイル使用メモリ 54,364 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-29 15:06:43
合計ジャッジ時間 1,900 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
	
	int a,b,c;
	int ntime, stime,flag;
	
	cin>>a;
	cin>>b;
	cin>>c;
	
	ntime = a/b;
	stime = a/c;
	
	if (a % b != 0) {
        ntime += 1;
    }
    if (a % c != 0) {
        stime += 1;
    }
	
	if((double)stime*1.5<=ntime){
		cout<<"YES"<<endl;
	}else{
		cout<<"NO"<<endl;
	}
	
	return 0;
}
0