結果
| 問題 |
No.184 たのしい排他的論理和(HARD)
|
| コンテスト | |
| ユーザー |
紙ぺーぱー
|
| 提出日時 | 2015-05-14 16:44:28 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 136 bytes |
| コンパイル時間 | 427 ms |
| コンパイル使用メモリ | 36,288 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-11-16 21:33:31 |
| 合計ジャッジ時間 | 4,299 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 34 |
コンパイルメッセージ
main.c: In function 'main':
main.c:1:43: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
1 | long long a[65],x,y;main(i){for(gets(&i);~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){for(gets(&i);~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:114: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
1 | long long a[65],x,y;main(i){for(gets(&i);~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:114: note: include '<stdio.h>' or provide a declaration of 'printf'
/usr/bin/ld: /tmp/cc6acKd7.o: in function `main':
main.c:(.text.startup+0x29): 警告: the `gets' function is dangerous and should not be used.
ソースコード
long long a[65],x,y;main(i){for(gets(&i);~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);}
紙ぺーぱー