結果
問題 | No.313 π |
ユーザー | zerokugi |
提出日時 | 2015-12-11 23:30:46 |
言語 | C90 (gcc 11.4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 139 ms |
コンパイル使用メモリ | 19,456 KB |
実行使用メモリ | 7,964 KB |
最終ジャッジ日時 | 2024-09-15 08:28:45 |
合計ジャッジ時間 | 12,621 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
testcase_33 | -- | - |
コンパイルメッセージ
main.c:3:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 3 | main(){ | ^~~~ main.c: In function ‘main’: main.c:4:15: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 4 | while(scanf("%c", &c))if(isdigit(c)) x[c - '0']--; | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | #define REP(i,x) for(int i=0;i<(int)(x);i++) main.c:4:15: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 4 | while(scanf("%c", &c))if(isdigit(c)) x[c - '0']--; | ^~~~~ main.c:4:15: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:4:34: warning: implicit declaration of function ‘isdigit’ [-Wimplicit-function-declaration] 4 | while(scanf("%c", &c))if(isdigit(c)) x[c - '0']--; | ^~~~~~~ main.c:1:1: note: include ‘<ctype.h>’ or provide a declaration of ‘isdigit’ +++ |+#include <ctype.h> 1 | #define REP(i,x) for(int i=0;i<(int)(x);i++) main.c:5:36: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 5 | REP(i, 10) if(x[i]%4 == 3) printf("%d ", i); | ^~~~~~ main.c:5:36: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:5:36: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] main.c:5:36: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:6:36: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] 6 | REP(i, 10) if(x[i]%4 == 1) printf("%d\n", i); | ^~~~~~ main.c:6:36: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
ソースコード
#define REP(i,x) for(int i=0;i<(int)(x);i++) unsigned char c, x[11] = "dcdcbcbcda"; main(){ while(scanf("%c", &c))if(isdigit(c)) x[c - '0']--; REP(i, 10) if(x[i]%4 == 3) printf("%d ", i); REP(i, 10) if(x[i]%4 == 1) printf("%d\n", i); return 0; }