結果

問題 No.218 経験値1.5倍
ユーザー YatsukuYatsuku
提出日時 2015-12-24 02:02:39
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 423 bytes
コンパイル時間 488 ms
コンパイル使用メモリ 20,312 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-19 02:31:47
合計ジャッジ時間 1,620 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 0 ms
4,348 KB
testcase_05 AC 0 ms
4,348 KB
testcase_06 AC 0 ms
4,348 KB
testcase_07 AC 0 ms
4,348 KB
testcase_08 AC 1 ms
4,348 KB
testcase_09 AC 1 ms
4,348 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 1 ms
4,348 KB
testcase_14 WA -
testcase_15 AC 0 ms
4,348 KB
testcase_16 WA -
testcase_17 AC 0 ms
4,348 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 1 ms
4,348 KB
testcase_22 AC 1 ms
4,348 KB
testcase_23 AC 1 ms
4,348 KB
testcase_24 WA -
testcase_25 AC 1 ms
4,348 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 1 ms
4,348 KB
testcase_29 AC 0 ms
4,348 KB
testcase_30 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |         scanf("%d", &a);
      |         ^~~~~~~~~~~~~~~
main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |         scanf("%d", &b);
      |         ^~~~~~~~~~~~~~~
main.c:11:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 |         scanf("%d", &c);
      |         ^~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void)
{
	int a;
	int b;
	int c;

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

	int normal = 1;
	while ( 1 ) {
		b *= normal;
		normal++;
		if ( b > a ) {
			break;
		}
	}

	int bonus = 1;
	while ( 1 ) {
		c *= bonus;
		bonus++;
		if ( c > a ) {
			break;
		}
	}

	if ( (double)((bonus - 1) / (normal - 1)) <= (double)(2 / 3) ) {
		puts("YES");
	} else {
		puts("NO");
	}
	return 0;
}
0