結果
問題 | No.43 野球の試合 |
ユーザー | testestest |
提出日時 | 2017-01-22 19:29:52 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 253 ms |
コンパイル使用メモリ | 24,360 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-08-25 03:14:02 |
合計ジャッジ時間 | 1,185 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
4,380 KB |
testcase_01 | AC | 1 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | AC | 1 ms
4,380 KB |
testcase_04 | AC | 1 ms
4,380 KB |
testcase_05 | AC | 0 ms
4,380 KB |
testcase_06 | AC | 0 ms
4,380 KB |
testcase_07 | AC | 4 ms
4,376 KB |
testcase_08 | AC | 1 ms
4,380 KB |
testcase_09 | AC | 1 ms
4,384 KB |
testcase_10 | AC | 1 ms
4,380 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class i;a[14];x(int*a){int b[6]={},f=1,i=48,j=0;char c[48];for(bcopy(a,c,48);--i&&c[i]-45;b[i/8]+=c[i]&4);for(;i<6;j|=1<<b[i++])f+=~j>>b[i]&b[i]>*b;return i>6?c[i]=4,c[j=i%8*8+i/8]=0,f=x(c),c[i]=0,c[j]=4,j=x(c),f<j?f:j:f;}main(){for(;gets(a+i++*2););i=!printf("%d",x(a+2));} ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] main.c:1:3: warning: data definition has no type or storage class i;a[14];x(int*a){int b[6]={},f=1,i=48,j=0;char c[48];for(bcopy(a,c,48);--i&&c[i]-45;b[i/8]+=c[i]&4);for(;i<6;j|=1<<b[i++])f+=~j>>b[i]&b[i]>*b;return i>6?c[i]=4,c[j=i%8*8+i/8]=0,f=x(c),c[i]=0,c[j]=4,j=x(c),f<j?f:j:f;}main(){for(;gets(a+i++*2););i=!printf("%d",x(a+2));} ^ main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:9: warning: return type defaults to ‘int’ [-Wimplicit-int] i;a[14];x(int*a){int b[6]={},f=1,i=48,j=0;char c[48];for(bcopy(a,c,48);--i&&c[i]-45;b[i/8]+=c[i]&4);for(;i<6;j|=1<<b[i++])f+=~j>>b[i]&b[i]>*b;return i>6?c[i]=4,c[j=i%8*8+i/8]=0,f=x(c),c[i]=0,c[j]=4,j=x(c),f<j?f:j:f;}main(){for(;gets(a+i++*2););i=!printf("%d",x(a+2));} ^ main.c: In function ‘x’: main.c:1:58: warning: implicit declaration of function ‘bcopy’ [-Wimplicit-function-declaration] i;a[14];x(int*a){int b[6]={},f=1,i=48,j=0;char c[48];for(bcopy(a,c,48);--i&&c[i]-45;b[i/8]+=c[i]&4);for(;i<6;j|=1<<b[i++])f+=~j>>b[i]&b[i]>*b;return i>6?c[i]=4,c[j=i%8*8+i/8]=0,f=x(c),c[i]=0,c[j]=4,j=x(c),f<j?f:j:f;}main(){for(;gets(a+i++*2););i=!printf("%d",x(a+2));} ^~~~~ main.c:1:58: warning: incompatible implicit declaration of built-in function ‘bcopy’ main.c:1:182: warning: passing argument 1 of ‘x’ from incompatible pointer type [-Wincompatible-pointer-types] i;a[14];x(int*a){int b[6]={},f=1,i=48,j=0;char c[48];for(bcopy(a,c,48);--i&&c[i]-45;b[i/8]+=c[i]&4);for(;i<6;j|=1<<b
ソースコード
i;a[14];x(int*a){int b[6]={},f=1,i=48,j=0;char c[48];for(bcopy(a,c,48);--i&&c[i]-45;b[i/8]+=c[i]&4);for(;i<6;j|=1<<b[i++])f+=~j>>b[i]&b[i]>*b;return i>6?c[i]=4,c[j=i%8*8+i/8]=0,f=x(c),c[i]=0,c[j]=4,j=x(c),f<j?f:j:f;}main(){for(;gets(a+i++*2););i=!printf("%d",x(a+2));}