結果
問題 | No.313 π |
ユーザー | zerokugi |
提出日時 | 2015-12-11 23:44:25 |
言語 | C90 (gcc 11.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 848 ms |
コンパイル使用メモリ | 19,200 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-15 08:29:25 |
合計ジャッジ時間 | 2,194 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 10 ms
6,812 KB |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | AC | 11 ms
6,944 KB |
testcase_04 | AC | 10 ms
6,944 KB |
testcase_05 | AC | 10 ms
6,940 KB |
testcase_06 | AC | 11 ms
6,944 KB |
testcase_07 | AC | 11 ms
6,944 KB |
testcase_08 | AC | 10 ms
6,944 KB |
testcase_09 | AC | 11 ms
6,944 KB |
testcase_10 | AC | 10 ms
6,940 KB |
testcase_11 | AC | 10 ms
6,944 KB |
testcase_12 | AC | 11 ms
6,940 KB |
testcase_13 | AC | 11 ms
6,940 KB |
testcase_14 | AC | 10 ms
6,944 KB |
testcase_15 | AC | 11 ms
6,944 KB |
testcase_16 | AC | 11 ms
6,944 KB |
testcase_17 | AC | 11 ms
6,944 KB |
testcase_18 | AC | 11 ms
6,940 KB |
testcase_19 | AC | 11 ms
6,944 KB |
testcase_20 | AC | 11 ms
6,944 KB |
testcase_21 | AC | 10 ms
6,944 KB |
testcase_22 | AC | 10 ms
6,940 KB |
testcase_23 | AC | 10 ms
6,940 KB |
testcase_24 | AC | 10 ms
6,944 KB |
testcase_25 | AC | 10 ms
6,940 KB |
testcase_26 | RE | - |
testcase_27 | AC | 10 ms
6,940 KB |
testcase_28 | AC | 10 ms
6,944 KB |
testcase_29 | AC | 10 ms
6,944 KB |
testcase_30 | AC | 10 ms
6,940 KB |
testcase_31 | AC | 10 ms
6,940 KB |
testcase_32 | AC | 11 ms
6,940 KB |
testcase_33 | AC | 11 ms
6,940 KB |
コンパイルメッセージ
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 | unsigned char j,c,x[99]="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’
ソースコード
unsigned char j,c,x[99]="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; }