結果

問題 No.3041 非対称じゃんけん
コンテスト
ユーザー Today03
提出日時 2025-03-01 19:31:31
言語 C++23
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WJ  
(最新)
AC  
(最初)
実行時間 -
コード長 886 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
最終ジャッジ日時 2026-07-06 14:23:57
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
#define ALL(x) (x).begin(), (x).end()
#define LB(v, x) (int)(lower_bound(ALL(v), x) - v.begin())
#define UQ(v) sort(ALL(v)), (v).erase(unique(ALL(v)), (v).end())
#define IO ios::sync_with_stdio(false), cin.tie(nullptr);
#define chmax(a, b) (a) = (a) < (b) ? (b) : (a)
#define chmin(a, b) (a) = (a) < (b) ? (a) : (b)
using namespace std;
using ll = long long;
const int INF = 1e9 + 10;
const ll INFL = 4e18;

int main() {
    int N, F;
    cin >> N >> F;
    vector<vector<int>> A(N, vector<int>(3));
    for (int j = 0; j < 3; j++)
        for (int i = 0; i < N; i++) cin >> A[i][j];

    const int M = 15000 * 60 + 1;
    bitset<M> st;
    for (int i = 0; i < 3; i++) st[A[0][i]] = 1;
    cout << st.count() << '\n';
    for (int i = 1; i < N; i++) {
        st = (st << A[i][0]) | (st << A[i][1]) | (st << A[i][2]);
        cout << st.count() << '\n';
    }
}
0