結果
問題 |
No.184 たのしい排他的論理和(HARD)
|
ユーザー |
![]() |
提出日時 | 2015-05-14 16:22:42 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 56 ms / 5,000 ms |
コード長 | 137 bytes |
コンパイル時間 | 125 ms |
コンパイル使用メモリ | 19,712 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-04 11:47:41 |
合計ジャッジ時間 | 2,417 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 |
コンパイルメッセージ
main.c:1:21: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | long long a[65],x,y;main(i){gets(&i);while(~scanf("%lld",&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);} | ^~~~ main.c: In function ‘main’: main.c:1:21: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:1:29: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 1 | long long a[65],x,y;main(i){gets(&i);while(~scanf("%lld",&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);} | ^~~~ main.c:1:45: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | long long a[65],x,y;main(i){gets(&i);while(~scanf("%lld",&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | long long a[65],x,y;main(i){gets(&i);while(~scanf("%lld",&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);} main.c:1:45: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | long long a[65],x,y;main(i){gets(&i);while(~scanf("%lld",&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);} | ^~~~~ main.c:1:45: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:115: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | long long a[65],x,y;main(i){gets(&i);while(~scanf("%lld",&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);} | ^~~~~~ main.
ソースコード
long long a[65],x,y;main(i){gets(&i);while(~scanf("%lld",&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);}