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