結果
問題 |
No.183 たのしい排他的論理和(EASY)
|
ユーザー |
![]() |
提出日時 | 2016-02-16 19:18:52 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 647 ms |
コンパイル使用メモリ | 67,512 KB |
実行使用メモリ | 11,676 KB |
最終ジャッジ日時 | 2024-09-22 07:18:03 |
合計ジャッジ時間 | 7,253 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 -- * 12 |
ソースコード
#include <iostream> #include <map> using namespace std; int main() { int n; cin >> n; int as[n]; map<int,int> nums {{0,1}}; for (int i = 0; i < n; i++) { int a; cin >> a; for (auto p : nums) nums[a^p.first]++; } cout << nums.size() << endl; return 0; }