結果
| 問題 |
No.218 経験値1.5倍
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-06-10 18:32:55 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 290 bytes |
| コンパイル時間 | 713 ms |
| コンパイル使用メモリ | 20,480 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-29 15:07:36 |
| 合計ジャッジ時間 | 1,669 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | fscanf(stdin, "%ld", &a);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:6:9: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | fscanf(stdin, "%ld", &b);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:7:9: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | fscanf(stdin, "%ld", &c);
| ^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void) {
unsigned long a,b,c, n, m;
fscanf(stdin, "%ld", &a);
fscanf(stdin, "%ld", &b);
fscanf(stdin, "%ld", &c);
for(n = 1; (b * n) < a; n++);
for(m = 1; (c * m) < a; m++);
if((n * 2 / 3) >= m)
printf("YES\n");
else
printf("NO\n");
return 0;
}