結果
| 問題 | No.3041 非対称じゃんけん |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-03-01 00:47:03 |
| 言語 | C++17(clang) (clang++ 22.1.2 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1,068 ms / 2,200 ms |
| コード長 | 509 bytes |
| 記録 | |
| コンパイル時間 | 5,228 ms |
| コンパイル使用メモリ | 171,176 KB |
| 実行使用メモリ | 9,232 KB |
| 最終ジャッジ日時 | 2026-07-06 13:36:49 |
| 合計ジャッジ時間 | 10,748 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 30 |
コンパイルメッセージ
main.cpp:24:8: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
24 | bs = move(bs2);
| ^
| std::
1 warning generated.
ソースコード
#pragma GCC optimize("O3")
#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);
bs2 |= bs << a[i];
bs2 |= bs << b[i];
bs2 |= bs << c[i];
bs = move(bs2);
cout << bs.count() << "\n";
}
}