結果
| 問題 | 
                            No.130 XOR Minimax
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-10-31 15:38:48 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 328 bytes | 
| コンパイル時間 | 738 ms | 
| コンパイル使用メモリ | 68,720 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-11-25 00:06:16 | 
| 合計ジャッジ時間 | 1,824 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 2 WA * 19 | 
ソースコード
#include <iostream>
#include <cstdint>
#include <iomanip>
typedef std::uint_fast32_t uInt;
int main() {
	uInt n;
	std::cin >> n;
	uInt start;
	uInt map=UINT_FAST32_MAX;
	std::cin >> start;
	uInt value;
	for(uInt i=0;i<n-1;i++){
		std::cin>>value;
		map = map & (~(start ^ value));
	}
	std::cout<<(~map)<<std::endl;
	return 0;
}