結果
問題 | No.313 π |
ユーザー | zerokugi |
提出日時 | 2015-12-11 23:30:46 |
言語 | C90 (gcc 11.4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 23,400 KB |
実行使用メモリ | 10,328 KB |
最終ジャッジ日時 | 2023-10-13 11:29:23 |
合計ジャッジ時間 | 12,615 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
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] main(){ ^~~~ main.c: In function ‘main’: main.c:4:8: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] while(scanf("%c", &c))if(isdigit(c)) x[c - '0']--; ^~~~~ main.c:4:8: warning: incompatible implicit declaration of built-in function ‘scanf’ main.c:4:8: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:1: +#include <stdio.h> #define REP(i,x) for(int i=0;i<(int)(x);i++) main.c:4:8: while(scanf("%c", &c))if(isdigit(c)) x[c - '0']--; ^~~~~ main.c:4:27: warning: implicit declaration of function ‘isdigit’ [-Wimplicit-function-declaration] while(scanf("%c", &c))if(isdigit(c)) x[c - '0']--; ^~~~~~~ main.c:5:29: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] REP(i, 10) if(x[i]%4 == 3) printf("%d ", i); ^~~~~~ main.c:5:29: warning: incompatible implicit declaration of built-in function ‘printf’ main.c:5:29: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:6:29: warning: incompatible implicit declaration of built-in function ‘printf’ REP(i, 10) if(x[i]%4 == 1) printf("%d\n", i); ^~~~~~ main.c:6:29: 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; }