結果

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

ソースコード

diff #

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

int main() {
	int a, b, c;
	int need_b, need_c;
	cin >> a >> b >> c;

	double div_ab = (double)a / (double)b;
	if (div_ab != (double)(a / b)) {
		need_b = a / b + 1;
	}
	else {
		need_b = a / b;
	}

	double div_ac = (double)a / (double)c;
	if (div_ac != (double)(a / c)) {
		need_c = a / c + 1;
	}
	else {
		need_c = a / c;
	}

	if (need_b >= 1.5*need_c) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}

	return 0;
}
0