結果

問題 No.154 市バス
ユーザー testestesttestestest
提出日時 2016-07-23 09:29:24
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 802 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 19,712 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-21 09:54:08
合計ジャッジ時間 6,274 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 792 ms
5,248 KB
testcase_01 AC 795 ms
5,376 KB
testcase_02 AC 802 ms
5,376 KB
testcase_03 AC 793 ms
5,376 KB
testcase_04 AC 798 ms
5,376 KB
testcase_05 AC 0 ms
5,376 KB
testcase_06 AC 0 ms
5,376 KB
testcase_07 AC 789 ms
5,376 KB
testcase_08 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | x,z,s,t;main(i){for(;read(0,&z,1);)z<11?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--;}
      | ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int]
main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘z’ [-Wimplicit-int]
    1 | x,z,s,t;main(i){for(;read(0,&z,1);)z<11?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--;}
      |   ^
main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
    1 | x,z,s,t;main(i){for(;read(0,&z,1);)z<11?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--;}
      |     ^
main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘t’ [-Wimplicit-int]
    1 | x,z,s,t;main(i){for(;read(0,&z,1);)z<11?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--;}
      |       ^
main.c:1:9: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | x,z,s,t;main(i){for(;read(0,&z,1);)z<11?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--;}
      |         ^~~~
main.c: In function ‘main’:
main.c:1:9: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:22: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
    1 | x,z,s,t;main(i){for(;read(0,&z,1);)z<11?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--;}
      |                      ^~~~
main.c:1:51: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
    1 | x,z,s,t;main(i){for(;read(0,&z,1);)z<11?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--;}
      |                                                   ^~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’
  +++ |+

ソースコード

diff #

x,z,s,t;main(i){for(;read(0,&z,1);)z<11?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--;}
0