結果
| 問題 | No.183 たのしい排他的論理和(EASY) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-21 11:38:24 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 357 bytes |
| 記録 | |
| コンパイル時間 | 466 ms |
| コンパイル使用メモリ | 89,580 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-03-26 02:11:57 |
| 合計ジャッジ時間 | 69,083 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 TLE * 11 |
ソースコード
#include <iostream>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;
int main()
{
set<int>data,data2;
data.insert(0);
int N,a;
cin >> N;
for (size_t i = 0; i < N; i++)
{
cin >> a;
data.insert(a);
}
for (auto x : data)
{
for (auto y : data)
{
data.insert(x^y);
}
}
cout << data.size() << endl;
return 0;
}