結果
問題 | No.3041 非対称じゃんけん |
ユーザー |
|
提出日時 | 2025-03-01 10:13:55 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1,993 ms / 2,200 ms |
コード長 | 556 bytes |
コンパイル時間 | 4,047 ms |
コンパイル使用メモリ | 301,544 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-03-01 10:14:14 |
合計ジャッジ時間 | 19,167 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 30 |
ソースコード
#pragma GCC optimize("O3")typedef long long ll;typedef long double ld;#include <bits/stdc++.h>using namespace std;int main() {ios_base::sync_with_stdio(false);cin.tie(0);ll n, f;cin >> n >> f;vector<ll> a(n), b(n), c(n);for (ll i = 0; i < n; i++) {cin >> a[i];}for (ll i = 0; i < n; i++) {cin >> b[i];}for (ll i = 0; i < n; i++) {cin >> c[i];}auto cur = bitset<900001>(1);for (ll i = 0; i < n; i++) {cur = cur << a[i] | cur << b[i] | cur << c[i];cout << cur.count() << '\n';}}