結果

問題 No.218 経験値1.5倍
ユーザー kei
提出日時 2016-08-16 11:58:01
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 343 bytes
コンパイル時間 607 ms
コンパイル使用メモリ 65,616 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-07 18:15:48
合計ジャッジ時間 1,494 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main() {
	double a, b, c;
	long long p, q;
	cin >> a >> b >> c;
	p = 1000 * (a / b); q = 1000 * (a / c);
	p = (2.0 / 3) * p;
	if (q % 1000 > 0) { q = 1000 * (q / 1000 + 1); }
	if (q - p > 0) { cout << "NO" << endl; }
	else { cout << "YES" << endl; }
	return 0;
}
0