結果

問題 No.154 市バス
コンテスト
ユーザー testestest
提出日時 2016-03-12 23:06:06
言語 C90(gcc12)
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 135 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 135 ms
コンパイル使用メモリ 29,260 KB
最終ジャッジ日時 2026-02-23 20:52:46
ジャッジサーバーID
(参考情報)
judge5 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;);}
      | ^
/usr/bin/ld: /tmp/ccu6UArH.o: in function `main':
main.c:(.text.startup+0x20): 警告: the `gets' function is dangerous and should not be used.

ソースコード

diff #
raw source code

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