結果
問題 |
No.256 桁の数字を入れ替え (2)
|
ユーザー |
👑 ![]() |
提出日時 | 2015-11-08 21:21:30 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 87 ms / 2,000 ms |
コード長 | 77 bytes |
コンパイル時間 | 143 ms |
コンパイル使用メモリ | 19,200 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-13 14:11:11 |
合計ジャッジ時間 | 704 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a[99];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:7: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | a[99];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:7: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int] main.c:1:20: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration] 1 | a[99];main(t){for(;read(0,&t,1);a[t]++);for(;t;)a[t+47]--?putchar(47+t):t--;} | ^~~~ main.c:1:59: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration] 1 | a[99];main(t){for(;read(0,&t,1);a[t]++);for(;t;)a[t+47]--?putchar(47+t):t--;} | ^~~~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘putchar’ +++ |+#include <stdio.h> 1 | a[99];main(t){for(;read(0,&t,1);a[t]++);for(;t;)a[t+47]--?putchar(47+t):t--;}
ソースコード
a[99];main(t){for(;read(0,&t,1);a[t]++);for(;t;)a[t+47]--?putchar(47+t):t--;}