結果

問題 No.231 めぐるはめぐる (1)
ユーザー testestesttestestest
提出日時 2015-08-09 01:59:02
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 183 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 23,328 KB
実行使用メモリ 4,508 KB
最終ジャッジ日時 2023-09-25 07:25:44
合計ジャッジ時間 2,813 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
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:8: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 p=6;if(puts(i-n?"YES\n":"NO")>2)while(p--)printf("%d",i-1);
        ^~~~
main.c:5:43: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 p=6;if(puts(i-n?"YES\n":"NO")>2)while(p--)printf("%d",i-1);
                                           ^~~~~~
main.c:5:43: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:5:43: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

ソースコード

diff #

int main(){
int i,n,m,p,q;
scanf("%d",&n);
for(i=0;i<n&&m<500000;i++)scanf("%d%d",&p,&q),p-=q*30000,m=m<p?p:m;
p=6;if(puts(i-n?"YES\n":"NO")>2)while(p--)printf("%d",i-1);
return 0;
}
0