結果

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

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int main(){
	int a;
	int b;
	int c;
	int t1 = 0;
	int t2 = 0;
	int cnt1 = 0;
	int cnt2 = 0;
	cin >> a;
	cin >> b;
	cin >> c;
	while (a > t1){
		cnt1 += 1;
		t1 += b;
	}
	while (a > t2){
		cnt2 += 1;
		t2 += c;
	}

	if ((cnt1*2)/ 3 >= cnt2){
		cout << "YES" << endl;
	}
	else{
		cout << "NO" << endl;
	}

	return 0;
}
0