結果

問題 No.69 文字を自由に並び替え
コンテスト
ユーザー testestest
提出日時 2015-08-08 13:14:45
言語 C90
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 118 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 116 ms
コンパイル使用メモリ 29,252 KB
最終ジャッジ日時 2026-02-23 19:03:52
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:11: warning: data definition has no type or storage class
    1 | char a[9];i;main(b){gets(a-2);for(;(b=~getchar())&&b+11&i-9;a[i]=0)for(i=-3;++i<9&&a[i]-~b;);i=!puts(i-9?"YES":"NO");}
      |           ^
/usr/bin/ld: /tmp/ccaRn2sy.o: in function `main':
main.c:(.text.startup+0x16): 警告: the `gets' function is dangerous and should not be used.

ソースコード

diff #
raw source code

char a[9];i;main(b){gets(a-2);for(;(b=~getchar())&&b+11&i-9;a[i]=0)for(i=-3;++i<9&&a[i]-~b;);i=!puts(i-9?"YES":"NO");}
0