結果
問題 |
No.313 π
|
ユーザー |
👑 ![]() |
提出日時 | 2016-03-21 22:35:27 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 156 ms / 5,000 ms |
コード長 | 118 bytes |
コンパイル時間 | 291 ms |
コンパイル使用メモリ | 19,840 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-01 12:27:29 |
合計ジャッジ時間 | 6,930 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a[16]={3,2,1,0,3,3,2,2},j,k;main(i){for(;read(0,&i,1)?a[i&15]--,1:a[j]%5?++j:a[k]%5+2?++k:0;);j=!printf("%d %d",k,j);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:25: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int] 1 | a[16]={3,2,1,0,3,3,2,2},j,k;main(i){for(;read(0,&i,1)?a[i&15]--,1:a[j]%5?++j:a[k]%5+2?++k:0;);j=!printf("%d %d",k,j);} | ^ main.c:1:27: warning: type defaults to ‘int’ in declaration of ‘k’ [-Wimplicit-int] 1 | a[16]={3,2,1,0,3,3,2,2},j,k;main(i){for(;read(0,&i,1)?a[i&15]--,1:a[j]%5?++j:a[k]%5+2?++k:0;);j=!printf("%d %d",k,j);} | ^ main.c:1:29: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | a[16]={3,2,1,0,3,3,2,2},j,k;main(i){for(;read(0,&i,1)?a[i&15]--,1:a[j]%5?++j:a[k]%5+2?++k:0;);j=!printf("%d %d",k,j);} | ^~~~ main.c: In function ‘main’: main.c:1:29: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:1:42: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration] 1 | a[16]={3,2,1,0,3,3,2,2},j,k;main(i){for(;read(0,&i,1)?a[i&15]--,1:a[j]%5?++j:a[k]%5+2?++k:0;);j=!printf("%d %d",k,j);} | ^~~~ main.c:1:98: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | a[16]={3,2,1,0,3,3,2,2},j,k;main(i){for(;read(0,&i,1)?a[i&15]--,1:a[j]%5?++j:a[k]%5+2?++k:0;);j=!printf("%d %d",k,j);} | ^~~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ +++ |+#include <stdio.h> 1 | a[16]={3,2,1,0,3,3,2,2},j,k;main(i){for(;read(0,&i,1)?a[i&15]--,1:a[j]%5?++j:a[k]%5+2?++k:0;);j=!printf("%d
ソースコード
a[16]={3,2,1,0,3,3,2,2},j,k;main(i){for(;read(0,&i,1)?a[i&15]--,1:a[j]%5?++j:a[k]%5+2?++k:0;);j=!printf("%d %d",k,j);}