結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー | testestest |
提出日時 | 2015-08-09 02:03:38 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 190 bytes |
コンパイル時間 | 110 ms |
コンパイル使用メモリ | 23,300 KB |
実行使用メモリ | 4,500 KB |
最終ジャッジ日時 | 2023-09-25 07:25:47 |
合計ジャッジ時間 | 2,148 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 1 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 1 ms
4,376 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 1 ms
4,380 KB |
testcase_12 | WA | - |
コンパイルメッセージ
main.c: In function ‘main’: main.c:3:1: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] scanf("%d",&n); ^~~~~ main.c:3:1: warning: incompatible implicit declaration of built-in function ‘scanf’ main.c:3:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:1: +#include <stdio.h> int main(){ main.c:3:1: scanf("%d",&n); ^~~~~ main.c:5:1: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] puts(i-n-1?"YES\n":"NO");if(p=6,i-n-1)while(p--)printf("%d\n",i); ^~~~ main.c:5:49: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] puts(i-n-1?"YES\n":"NO");if(p=6,i-n-1)while(p--)printf("%d\n",i); ^~~~~~ main.c:5:49: warning: incompatible implicit declaration of built-in function ‘printf’ main.c:5:49: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
int main(){ int i,n,m=0,p,q; scanf("%d",&n); for(i=0;m<500000&&i++<n;)scanf("%d%d",&p,&q),p-=q*30000,m=m<p?p:m; puts(i-n-1?"YES\n":"NO");if(p=6,i-n-1)while(p--)printf("%d\n",i); return 0; }