結果
| 問題 |
No.1674 Introduction to XOR
|
| コンテスト | |
| ユーザー |
merom686
|
| 提出日時 | 2021-09-10 21:31:32 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 47 ms / 1,000 ms |
| コード長 | 370 bytes |
| コンパイル時間 | 1,874 ms |
| コンパイル使用メモリ | 191,792 KB |
| 最終ジャッジ日時 | 2025-01-24 09:46:04 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n;
cin >> n;
ll x = 0;
for (int i = 0; i < n; i++) {
ll a;
cin >> a;
x |= a;
}
for (int i = 0;; i++) {
ll t = 1LL << i;
if (!(x & t)) {
cout << t << endl;
break;
}
}
return 0;
}
merom686