結果
| 問題 | 
                            No.130 XOR Minimax
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-10-31 15:28:52 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 321 bytes | 
| コンパイル時間 | 1,158 ms | 
| コンパイル使用メモリ | 69,176 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-11-25 00:06:06 | 
| 合計ジャッジ時間 | 3,912 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 21 | 
ソースコード
#include <iostream>
#include <cstdint>
#include <iomanip>
typedef std::uint_fast32_t uInt;
int main() {
	uInt n;
	std::cin >> n;
	uInt start;
	uInt map=0xffffffff;
	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;
}