結果
| 問題 | 
                            No.183 たのしい排他的論理和(EASY)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             fiord
                         | 
                    
| 提出日時 | 2015-07-08 22:26:28 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 356 bytes | 
| コンパイル時間 | 1,449 ms | 
| コンパイル使用メモリ | 159,072 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-07-08 01:44:41 | 
| 合計ジャッジ時間 | 3,576 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 15 RE * 3 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
	int n;	cin>>n;
	int a;
	bool data[1<<14];
	for(int i=0;i<(1<<14);i++)	data[i]=false;
	data[0]=true;
	for(int i=0;i<n;i++){
		cin>>a;
		for(int i=0;i<(1<<14);i++){
			if(data[i])	data[i^a]=true;
		}
	}
	int ans=0;
	for(int i=0;i<(1<<14);i++){
		if(data[i])	ans++;
	}
	cout<<ans<<endl;
	return 0;
}
            
            
            
        
            
fiord