結果

問題 No.154 市バス
ユーザー testestesttestestest
提出日時 2016-03-12 23:06:06
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 11 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 305 ms
コンパイル使用メモリ 19,712 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-21 09:17:47
合計ジャッジ時間 952 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
5,248 KB
testcase_01 AC 11 ms
5,248 KB
testcase_02 AC 10 ms
5,376 KB
testcase_03 AC 10 ms
5,376 KB
testcase_04 AC 10 ms
5,376 KB
testcase_05 AC 0 ms
5,376 KB
testcase_06 AC 0 ms
5,376 KB
testcase_07 AC 7 ms
5,376 KB
testcase_08 AC 0 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | z,t,s;main(x){for(gets(&z);(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(puts("impossible"+2*!(t|s<0|x+72)),s=t=0),1:0;);}
      | ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘z’ [-Wimplicit-int]
main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int]
    1 | z,t,s;main(x){for(gets(&z);(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(puts("impossible"+2*!(t|s<0|x+72)),s=t=0),1:0;);}
      |   ^
main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
    1 | z,t,s;main(x){for(gets(&z);(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(puts("impossible"+2*!(t|s<0|x+72)),s=t=0),1:0;);}
      |     ^
main.c:1:7: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | z,t,s;main(x){for(gets(&z);(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(puts("impossible"+2*!(t|s<0|x+72)),s=t=0),1:0;);}
      |       ^~~~
main.c: In function ‘main’:
main.c:1:7: warning: type of ‘x’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:19: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
    1 | z,t,s;main(x){for(gets(&z);(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(puts("impossible"+2*!(t|s<0|x+72)),s=t=0),1:0;);}
      |                   ^~~~
main.c:1:32: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration]
    1 | z,t,s;main(x){for(gets(&z);(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(puts("impossible"+2*!(t|s<0|x+72)),s=t=0),1:0;);}
      |                                ^~~~~~~
main.c:1:1: note: ‘getchar’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
  +++ |+#include <stdio.h>
    1 | z,t,s;main(x){for(gets(&z);(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(puts("impossible"+2*!(t|s<0|x+72)),s=t=0),1:0;

ソースコード

diff #

z,t,s;main(x){for(gets(&z);(z=~getchar())?z+11?z+83?x=z,z+88?s--,~t&&t++:~s&&s++:t--:(puts("impossible"+2*!(t|s<0|x+72)),s=t=0),1:0;);}
0