結果
| 問題 | No.313 π |
| コンテスト | |
| ユーザー |
zerokugi
|
| 提出日時 | 2015-12-11 23:30:46 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 250 bytes |
| コンパイル時間 | 139 ms |
| コンパイル使用メモリ | 19,456 KB |
| 実行使用メモリ | 7,964 KB |
| 最終ジャッジ日時 | 2024-09-15 08:28:45 |
| 合計ジャッジ時間 | 12,621 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 -- * 1 |
| other | -- * 32 |
コンパイルメッセージ
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;
}
zerokugi