結果

問題 No.218 経験値1.5倍
ユーザー hotpepsihotpepsi
提出日時 2015-05-30 00:50:39
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 429 bytes
コンパイル時間 497 ms
コンパイル使用メモリ 58,668 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-06 12:24:39
合計ジャッジ時間 1,356 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <numeric>
#include <sstream>
#include <cstdio>

using namespace std;

int main(int argc, char *argv[])
{
	string s;
	getline(cin, s);
	int a = atoi(s.c_str());
	getline(cin, s);
	int b = atoi(s.c_str());
	getline(cin, s);
	int c = atoi(s.c_str());
	int x = (a + b +1) / b;
	int y = (a + c + 1) / c;
	bool ans = y * 3 <= x * 2;
	cout << (ans ? "YES" : "NO") << endl;
	return 0;
}
0