結果
| 問題 |
No.183 たのしい排他的論理和(EASY)
|
| ユーザー |
|
| 提出日時 | 2015-04-17 01:54:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 383 bytes |
| コンパイル時間 | 1,208 ms |
| コンパイル使用メモリ | 158,040 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-04 15:20:54 |
| 合計ジャッジ時間 | 2,894 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 RE * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int(i)=0;(i)<(n);++(i))
const int MOD = int(1e9+7);
bool f[16385];
int main(){
int N;
cin >> N;
f[0] = true;
REP(i,N){
int a; cin >> a;
REP(j,16385) if(f[j]) f[j^a] = true;
}
int res = 0;
REP(j,16385) if(f[j]) res++;
cout << res << endl;
return 0;
}