結果

問題 No.154 市バス
ユーザー testestesttestestest
提出日時 2016-05-14 13:03:03
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 792 ms / 2,000 ms
コード長 125 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 19,584 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-21 09:28:08
合計ジャッジ時間 6,242 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 786 ms
6,812 KB
testcase_01 AC 786 ms
6,944 KB
testcase_02 AC 788 ms
6,940 KB
testcase_03 AC 789 ms
6,940 KB
testcase_04 AC 789 ms
6,944 KB
testcase_05 AC 1 ms
6,940 KB
testcase_06 AC 1 ms
6,940 KB
testcase_07 AC 792 ms
6,944 KB
testcase_08 AC 1 ms
6,940 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==10?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==10?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==10?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==10?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==10?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==10?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:52: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
    1 | x,z,s,t;main(i){for(;read(0,&z,1);)z==10?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==10?s=t=--i&&!puts("impossible"+2*!(t|s<0|x-71)):z-82?x=z,z-87?s--,~t&&t++:~s&&s++:t--;}
0