結果

問題 No.218 経験値1.5倍
ユーザー keikei
提出日時 2016-08-16 11:58:01
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 343 bytes
コンパイル時間 552 ms
コンパイル使用メモリ 65,876 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-25 07:55:13
合計ジャッジ時間 1,493 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 1 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 2 ms
5,376 KB
testcase_08 AC 1 ms
5,376 KB
testcase_09 AC 1 ms
5,376 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 1 ms
5,376 KB
testcase_14 AC 1 ms
5,376 KB
testcase_15 AC 2 ms
5,376 KB
testcase_16 WA -
testcase_17 AC 2 ms
5,376 KB
testcase_18 AC 2 ms
5,376 KB
testcase_19 AC 1 ms
5,376 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 2 ms
5,376 KB
testcase_23 AC 2 ms
5,376 KB
testcase_24 AC 2 ms
5,376 KB
testcase_25 AC 1 ms
5,376 KB
testcase_26 WA -
testcase_27 AC 2 ms
5,376 KB
testcase_28 WA -
testcase_29 AC 2 ms
5,376 KB
testcase_30 WA -
権限があれば一括ダウンロードができます

ソースコード

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