結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー testestesttestestest
提出日時 2015-11-08 21:21:38
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 75 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 22,848 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-11 15:21:53
合計ジャッジ時間 727 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 0 ms
4,352 KB
testcase_02 AC 83 ms
4,348 KB
testcase_03 AC 83 ms
4,352 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
 a[];main(t){for(;read(0,&t,1);a[t]++);for(;t;)a[t+47]--?putchar(47+t):t--;}
 ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:1:5: warning: return type defaults to ‘int’ [-Wimplicit-int]
 a[];main(t){for(;read(0,&t,1);a[t]++);for(;t;)a[t+47]--?putchar(47+t):t--;}
     ^~~~
main.c: In function ‘main’:
main.c:1:5: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:18: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
 a[];main(t){for(;read(0,&t,1);a[t]++);for(;t;)a[t+47]--?putchar(47+t):t--;}
                  ^~~~
main.c:1:57: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
 a[];main(t){for(;read(0,&t,1);a[t]++);for(;t;)a[t+47]--?putchar(47+t):t--;}
                                                         ^~~~~~~
main.c: At top level:
main.c:1:1: warning: array ‘a’ assumed to have one element
 a[];main(t){for(;read(0,&t,1);a[t]++);for(;t;)a[t+47]--?putchar(47+t):t--;}
 ^

ソースコード

diff #

a[];main(t){for(;read(0,&t,1);a[t]++);for(;t;)a[t+47]--?putchar(47+t):t--;}
0