結果
問題 |
No.218 経験値1.5倍
|
ユーザー |
|
提出日時 | 2015-06-10 18:30:32 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 648 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-06 15:23:01 |
合計ジャッジ時間 | 1,202 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 7 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | fscanf(stdin, "%ld", &a); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:7:9: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | fscanf(stdin, "%ld", &b); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:8:9: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | fscanf(stdin, "%ld", &c); | ^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { // your code goes here 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; }