結果

問題 No.218 経験値1.5倍
ユーザー togaerrortogaerror
提出日時 2015-06-03 11:44:44
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 554 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 25,840 KB
実行使用メモリ 5,256 KB
最終ジャッジ日時 2023-09-20 18:58:10
合計ジャッジ時間 1,980 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>

int main() {
	int a, b, c;
	double normal, unnormal;
	double res;

	scanf("%d", &a);
	scanf("%d", &b);
	scanf("%d", &c);

	normal = (double)a / (double)b; //普段必要な素材の2/3
	normal = normal * 2.0 / 3.0;
	unnormal = (double)a / (double)c; //キャンペーン中に必要な素材
	if(normal != (int)normal) {
		normal = (int)normal + 1;
	}
	if(unnormal != (int)unnormal) {
		unnormal = (int)unnormal + 1;
	}
	res = normal * 2.0 / 3.0;
	
	if(res < unnormal){
		printf("NO\n");
	} else {
		printf("YES\n");
	}
	
	return 0;
}
0