結果
| 問題 |
No.184 たのしい排他的論理和(HARD)
|
| コンテスト | |
| ユーザー |
紙ぺーぱー
|
| 提出日時 | 2015-05-14 16:22:42 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 137 bytes |
| コンパイル時間 | 372 ms |
| コンパイル使用メモリ | 36,548 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-11-13 11:03:49 |
| 合計ジャッジ時間 | 3,678 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 34 |
コンパイルメッセージ
main.c: In function 'main':
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: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:115: warning: incompatible implicit declaration of built-in function 'printf' [-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:115: note: include '<stdio.h>' or provide a declaration of 'printf'
/usr/bin/ld: /tmp/ccEdoRCN.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){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);}
紙ぺーぱー