結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー testestesttestestest
提出日時 2015-11-08 10:45:46
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 149 bytes
コンパイル時間 534 ms
コンパイル使用メモリ 23,920 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-09-17 17:24:23
合計ジャッジ時間 57,985 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 0 ms
4,376 KB
testcase_02 WA -
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,376 KB
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 AC 0 ms
4,380 KB
testcase_20 AC 3,769 ms
4,376 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 1 ms
4,376 KB
testcase_25 WA -
testcase_26 AC 1 ms
4,380 KB
testcase_27 AC 0 ms
4,376 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:18: warning: data definition has no type or storage class
 long a[100001],p;i,s;main(j){for(gets(&j);~scanf("%ld",++i+a););for(;j=--i;p&&s++)for(p=a[i];--j;)a[j]&(p^p-1)+1>>1?a[j]^=p:0;i=!printf("%d",1L<<s);}
                  ^
main.c:1:18: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
main.c:1:20: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
 long a[100001],p;i,s;main(j){for(gets(&j);~scanf("%ld",++i+a););for(;j=--i;p&&s++)for(p=a[i];--j;)a[j]&(p^p-1)+1>>1?a[j]^=p:0;i=!printf("%d",1L<<s);}
                    ^
main.c:1:22: warning: return type defaults to ‘int’ [-Wimplicit-int]
 long a[100001],p;i,s;main(j){for(gets(&j);~scanf("%ld",++i+a););for(;j=--i;p&&s++)for(p=a[i];--j;)a[j]&(p^p-1)+1>>1?a[j]^=p:0;i=!printf("%d",1L<<s);}
                      ^~~~
main.c: In function ‘main’:
main.c:1:22: warning: type of ‘j’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:34: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 long a[100001],p;i,s;main(j){for(gets(&j);~scanf("%ld",++i+a););for(;j=--i;p&&s++)for(p=a[i];--j;)a[j]&(p^p-1)+1>>1?a[j]^=p:0;i=!printf("%d",1L<<s);}
                                  ^~~~
main.c:1:44: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 long a[100001],p;i,s;main(j){for(gets(&j);~scanf("%ld",++i+a););for(;j=--i;p&&s++)for(p=a[i];--j;)a[j]&(p^p-1)+1>>1?a[j]^=p:0;i=!printf("%d",1L<<s);}
                                            ^~~~~
main.c:1:44: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:1:44: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+#include <stdio.h>
 long a[100001],p;i,s;main(j){for(gets(&j);~scanf("%ld",++i+a););for(;j=--i;p&&s++)for(p=a[i];--j;)a[j]&(p^p-1)+1>>1?a[j]^=p:0;i=!printf("%d",1L<<s);}
                                            ^~~~~
main.c:1:130: warning: implicit declaration of function ‘p

ソースコード

diff #

long a[100001],p;i,s;main(j){for(gets(&j);~scanf("%ld",++i+a););for(;j=--i;p&&s++)for(p=a[i];--j;)a[j]&(p^p-1)+1>>1?a[j]^=p:0;i=!printf("%d",1L<<s);}
0