結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
![]() |
提出日時 | 2018-01-10 17:23:25 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 301 bytes |
コンパイル時間 | 1,371 ms |
コンパイル使用メモリ | 163,164 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-12-23 15:39:02 |
合計ジャッジ時間 | 38,295 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 TLE * 3 |
ソースコード
#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; }