結果
| 問題 | No.183 たのしい排他的論理和(EASY) |
| コンテスト | |
| ユーザー |
shossiissohs
|
| 提出日時 | 2018-01-10 17:23:25 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 301 bytes |
| 記録 | |
| コンパイル時間 | 1,064 ms |
| コンパイル使用メモリ | 180,488 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-29 15:33:33 |
| 合計ジャッジ時間 | 29,300 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 TLE * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
set<int> dp;
int n;
int main() {
cin >> n;
dp.insert(0);
for(int i = 0; i < n; i++) {
int a;
cin >> a;
for(auto itr = dp.begin(); itr != dp.end(); ++itr) {
dp.insert((*itr) ^ a);
}
}
cout << dp.size() << endl;
}
shossiissohs