結果
| 問題 |
No.206 数の積集合を求めるクエリ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-12 19:46:32 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 565 bytes |
| コンパイル時間 | 2,082 ms |
| コンパイル使用メモリ | 160,424 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-06 00:48:36 |
| 合計ジャッジ時間 | 10,613 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 6 |
ソースコード
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define fr(i, a, b) for (int i = (a); i < (b); i++)
using namespace std;
typedef long long ll;
const ll inf = 1e9;
const ll mod = 1e9 + 7;
typedef bitset<100000> BIT;
int L, M, N;
BIT A, B;
int Q;
int main() {
cin >> L >> M >> N;
rep (i, L) {
int a;
cin >> a;
A[a] = true;
}
rep (i, M) {
int b;
cin >> b;
B[b] = true;
}
cin >> Q;
rep (i, Q) {
cout << (A & B).count() << endl;
B <<= 1;
}
}