結果
問題 | No.130 XOR Minimax |
ユーザー | testestest |
提出日時 | 2016-05-05 09:28:53 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 249 bytes |
コンパイル時間 | 135 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-12 22:40:29 |
合計ジャッジ時間 | 1,413 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 1 ms
6,944 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | y,a[1<<17];c(int*a,int*b){y=*a-*b;}x(s,n,i){int l=s,u=n,m;for(;u-l>1;a[m=l+u>>1]&i?u=m:(l=m));y=i?(a[s]^a[n-1])&i?i|((l=x(s,u,i/2))<(m=x(u,n,i/2))?l:m):x(s,n,i/2):0;}main(n){for(n=-2;~scanf("%d",++n+a););qsort(a,n,4,c);y=!printf("%d",x(0,n,1<<29));} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘y’ [-Wimplicit-int] main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] 1 | y,a[1<<17];c(int*a,int*b){y=*a-*b;}x(s,n,i){int l=s,u=n,m;for(;u-l>1;a[m=l+u>>1]&i?u=m:(l=m));y=i?(a[s]^a[n-1])&i?i|((l=x(s,u,i/2))<(m=x(u,n,i/2))?l:m):x(s,n,i/2):0;}main(n){for(n=-2;~scanf("%d",++n+a););qsort(a,n,4,c);y=!printf("%d",x(0,n,1<<29));} | ^ main.c:1:12: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | y,a[1<<17];c(int*a,int*b){y=*a-*b;}x(s,n,i){int l=s,u=n,m;for(;u-l>1;a[m=l+u>>1]&i?u=m:(l=m));y=i?(a[s]^a[n-1])&i?i|((l=x(s,u,i/2))<(m=x(u,n,i/2))?l:m):x(s,n,i/2):0;}main(n){for(n=-2;~scanf("%d",++n+a););qsort(a,n,4,c);y=!printf("%d",x(0,n,1<<29));} | ^ main.c:1:36: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | y,a[1<<17];c(int*a,int*b){y=*a-*b;}x(s,n,i){int l=s,u=n,m;for(;u-l>1;a[m=l+u>>1]&i?u=m:(l=m));y=i?(a[s]^a[n-1])&i?i|((l=x(s,u,i/2))<(m=x(u,n,i/2))?l:m):x(s,n,i/2):0;}main(n){for(n=-2;~scanf("%d",++n+a););qsort(a,n,4,c);y=!printf("%d",x(0,n,1<<29));} | ^ main.c: In function ‘x’: main.c:1:36: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int] main.c:1:36: warning: type of ‘n’ defaults to ‘int’ [-Wimplicit-int] main.c:1:36: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c: At top level: main.c:1:167: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | y,a[1<<17];c(int*a,int*b){y=*a-*b;}x(s,n,i){int l=s,u=n,m;for(;u-l>1;a[m=l+u>>1]&i?u=m:(l=m));y=i?(a[s]^a[n-1])&i?i|((l=x(
ソースコード
y,a[1<<17];c(int*a,int*b){y=*a-*b;}x(s,n,i){int l=s,u=n,m;for(;u-l>1;a[m=l+u>>1]&i?u=m:(l=m));y=i?(a[s]^a[n-1])&i?i|((l=x(s,u,i/2))<(m=x(u,n,i/2))?l:m):x(s,n,i/2):0;}main(n){for(n=-2;~scanf("%d",++n+a););qsort(a,n,4,c);y=!printf("%d",x(0,n,1<<29));}