結果
| 問題 | No.1444 !Andd |
| コンテスト | |
| ユーザー |
Example0911
|
| 提出日時 | 2021-03-26 23:01:47 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 510 bytes |
| 記録 | |
| コンパイル時間 | 2,076 ms |
| コンパイル使用メモリ | 199,932 KB |
| 最終ジャッジ日時 | 2025-01-19 23:25:01 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 4 TLE * 15 |
ソースコード
#include "bits/stdc++.h"
#define int long long
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
const ll INF = (1LL << 61);
ll mod = 1000000007;
signed main() {
ios::sync_with_stdio(false);
cin.tie(0);
int N; cin >> N;
vector<int>A(N); for (int i = 0; i < N; i++)cin >> A[i];
set<int>st;
st.insert(1);
for (int i = 0; i < N; i++) {
set<int>now;
for (auto x : st) {
now.insert(x *A[i]);
now.insert((x & A[i]));
}
st = now;
cout << st.size() << endl;
}
return 0;
}
Example0911