結果
問題 |
No.3041 非対称じゃんけん
|
ユーザー |
![]() |
提出日時 | 2025-03-12 22:53:29 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 627 bytes |
コンパイル時間 | 3,539 ms |
コンパイル使用メモリ | 279,112 KB |
実行使用メモリ | 7,328 KB |
最終ジャッジ日時 | 2025-03-12 22:53:52 |
合計ジャッジ時間 | 21,793 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 27 TLE * 3 |
ソースコード
#include <bits/stdc++.h> //#include <atcoder/modint> using namespace std; //using namespace atcoder; using ll = long long; //using mint = modint998244353; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); int N, F; const int sz = (int)9e5+1; cin >> N >> F; vector a(N, vector<int>(3)); for (int i=0; i<3; i++){ for (int j=0; j<N; j++) cin >> a[j][i]; } bitset<sz> dp(1); for (int i=0; i<N; i++){ bitset<sz> pd(0); for (int j=0; j<3; j++) pd |= (dp << a[i][j]); swap(dp, pd); cout << dp.count() << endl; } return 0; }