結果
| 問題 | No.183 たのしい排他的論理和(EASY) |
| コンテスト | |
| ユーザー |
fuu32
|
| 提出日時 | 2018-02-05 14:15:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 557 bytes |
| コンパイル時間 | 1,371 ms |
| コンパイル使用メモリ | 173,632 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2024-07-07 15:00:52 |
| 合計ジャッジ時間 | 8,014 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 TLE * 1 -- * 12 |
ソースコード
#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<n;i++)
#define LOOP(i,x,n) for(int i=x;i<n;i++)
#define ALL(v) (v).begin(),(v).end()
#define PB push_backs
#define MP make_pair
#define FR first
#define SC second
#define int long long
using namespace std;
const int MOD=1000000007;
const int INF=1000000009;
signed main(){
int n;
cin>>n;
vector<int> a(n);
REP(i,n)cin>>a[i];
set<int> s;
s.insert(0);
REP(i,n){
for(auto x : s){
int tmp=(0)xor(x)xor(a[i]);
s.insert(tmp);
}
}
cout<<s.size()<<endl;
return 0;
}
fuu32