結果
| 問題 |
No.3041 非対称じゃんけん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-01 00:32:00 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 558 bytes |
| コンパイル時間 | 3,342 ms |
| コンパイル使用メモリ | 277,784 KB |
| 実行使用メモリ | 13,636 KB |
| 最終ジャッジ日時 | 2025-03-01 00:32:14 |
| 合計ジャッジ時間 | 14,628 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 20 TLE * 1 -- * 9 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int n, f;
cin >> n >> f;
vector<int> a(n), b(n), c(n);
for (auto&& i : a) cin >> i;
for (auto&& i : b) cin >> i;
for (auto&& i : c) cin >> i;
bitset<15000 * 60 + 1> bs(0);
bs[0] = 1;
for (int i = 0; i < n; ++i) {
bitset<15000 * 60 + 1> bs2(0);
for (int j = 0; j < 15000 * 60 + 1; ++j) {
if (bs[j]) {
bs2[j + a[i]] = 1;
bs2[j + b[i]] = 1;
bs2[j + c[i]] = 1;
}
}
bs = move(bs2);
cout << bs.count() << "\n";
}
}