結果
| 問題 | No.183 たのしい排他的論理和(EASY) |
| コンテスト | |
| ユーザー |
dnish
|
| 提出日時 | 2018-05-29 01:15:21 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 749 bytes |
| 記録 | |
| コンパイル時間 | 810 ms |
| コンパイル使用メモリ | 111,812 KB |
| 実行使用メモリ | 14,368 KB |
| 最終ジャッジ日時 | 2026-03-20 02:48:54 |
| 合計ジャッジ時間 | 41,124 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 TLE * 5 |
ソースコード
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define p(s) cout<<(s)<<endl
#define REP(i,n,N) for(int i=n;i<N;i++)
#define RREP(i,n,N) for(int i=N-1;i>=n;i--)
#define CK(n,a,b) ((a)<=(n)&&(n)<(b))
#define F first
#define S second
typedef long long ll;
using namespace std;
int N;
set<int> st{0};
int main(){
cin>>N;
REP(i,0,N){
int a;
cin>>a;
int n = st.size();
set<int> tmp = st;
for(auto itr = tmp.begin(); itr!=tmp.end(); ++itr){
st.insert(a^*itr);
}
}
p(st.size());
return 0;
}
dnish