結果

問題 No.178 美しいWhitespace (1)
ユーザー testestesttestestest
提出日時 2015-11-08 20:43:40
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 139 bytes
コンパイル時間 362 ms
コンパイル使用メモリ 23,792 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-10-11 15:21:47
合計ジャッジ時間 1,171 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 0 ms
4,352 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 1 ms
4,352 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 1 ms
4,348 KB
testcase_12 AC 1 ms
4,348 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 1 ms
4,352 KB
testcase_19 WA -
testcase_20 AC 1 ms
4,352 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 1 ms
4,356 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
 p,m,a[999],s,x;main(long n){for(gets(&p);~scanf("%d%d",&x,&p);m=x>m?x:m)a[s++]=x+=p*4;for(;s&&n%2;n+=m-a[--s]);s=!printf("%ld",n%2*n/2-1);}
 ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int]
main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘m’ [-Wimplicit-int]
 p,m,a[999],s,x;main(long n){for(gets(&p);~scanf("%d%d",&x,&p);m=x>m?x:m)a[s++]=x+=p*4;for(;s&&n%2;n+=m-a[--s]);s=!printf("%ld",n%2*n/2-1);}
   ^
main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
 p,m,a[999],s,x;main(long n){for(gets(&p);~scanf("%d%d",&x,&p);m=x>m?x:m)a[s++]=x+=p*4;for(;s&&n%2;n+=m-a[--s]);s=!printf("%ld",n%2*n/2-1);}
     ^
main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
 p,m,a[999],s,x;main(long n){for(gets(&p);~scanf("%d%d",&x,&p);m=x>m?x:m)a[s++]=x+=p*4;for(;s&&n%2;n+=m-a[--s]);s=!printf("%ld",n%2*n/2-1);}
            ^
main.c:1:14: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int]
 p,m,a[999],s,x;main(long n){for(gets(&p);~scanf("%d%d",&x,&p);m=x>m?x:m)a[s++]=x+=p*4;for(;s&&n%2;n+=m-a[--s]);s=!printf("%ld",n%2*n/2-1);}
              ^
main.c:1:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
 p,m,a[999],s,x;main(long n){for(gets(&p);~scanf("%d%d",&x,&p);m=x>m?x:m)a[s++]=x+=p*4;for(;s&&n%2;n+=m-a[--s]);s=!printf("%ld",n%2*n/2-1);}
                ^~~~
main.c: In function ‘main’:
main.c:1:33: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 p,m,a[999],s,x;main(long n){for(gets(&p);~scanf("%d%d",&x,&p);m=x>m?x:m)a[s++]=x+=p*4;for(;s&&n%2;n+=m-a[--s]);s=!printf("%ld",n%2*n/2-1);}
                                 ^~~~
main.c:1:43: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 p,m,a[999],s,x;main(long n){for(gets(&p);~scanf("%d%d",&x,&p);m=x>m?x:m)a[s++]=

ソースコード

diff #

p,m,a[999],s,x;main(long n){for(gets(&p);~scanf("%d%d",&x,&p);m=x>m?x:m)a[s++]=x+=p*4;for(;s&&n%2;n+=m-a[--s]);s=!printf("%ld",n%2*n/2-1);}
0