結果
| 問題 |
No.1673 Lamps on a line
|
| コンテスト | |
| ユーザー |
goteten
|
| 提出日時 | 2021-09-10 21:37:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 498 bytes |
| コンパイル時間 | 1,718 ms |
| コンパイル使用メモリ | 169,044 KB |
| 実行使用メモリ | 7,424 KB |
| 最終ジャッジ日時 | 2024-06-11 22:49:36 |
| 合計ジャッジ時間 | 2,685 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define all(x) (x).begin(),(x).end()
const int mod = 1000000007;
const long long INF = 1LL << 60;
int main()
{
int N;
cin >> N;
vector<long long> a(N);
rep(i,N){
cin >> a[i];
}
vector<int> keta(64,0);
rep(i,N){
rep(j,62){
keta[j]+=a[i]%2;
a[i]/=2;
}
}
long long ans=1;
rep(i,64){
if(keta[i]==0){
cout << ans << endl;
}
ans*=2LL;
}
}
goteten