結果
| 問題 |
No.3041 非対称じゃんけん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-01 12:55:40 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 565 bytes |
| コンパイル時間 | 3,560 ms |
| コンパイル使用メモリ | 276,596 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2025-03-01 12:56:02 |
| 合計ジャッジ時間 | 22,075 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 26 TLE * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int N, F;
constexpr int NN = 20202;
int A[NN], B[NN], C[NN];
constexpr int M = 60 * 15000 + 1;
int main() {
std::ios_base::sync_with_stdio(false);
std::cin.tie(nullptr);
cin >> N >> F;
for(int i = 0; i < N; i++) cin >> A[i];
for(int i = 0; i < N; i++) cin >> B[i];
for(int i = 0; i < N; i++) cin >> C[i];
bitset<M> dp;
dp.set(0);
for(int i = 0; i < N; i++) {
bitset<M> ndp;
ndp |= dp << A[i];
ndp |= dp << B[i];
ndp |= dp << C[i];
dp = ndp;
cout << dp.count() << "\n";
}
}