結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー Goryudyuma
提出日時 2015-04-21 11:38:24
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 357 bytes
コンパイル時間 703 ms
コンパイル使用メモリ 68,476 KB
実行使用メモリ 9,344 KB
最終ジャッジ日時 2024-07-04 19:04:00
合計ジャッジ時間 9,796 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 3 TLE * 1 -- * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0