結果

問題 No.3041 非対称じゃんけん
ユーザー houren
提出日時 2025-02-28 22:07:52
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 513 bytes
コンパイル時間 3,981 ms
コンパイル使用メモリ 308,424 KB
実行使用メモリ 16,928 KB
最終ジャッジ日時 2025-02-28 22:08:15
合計ジャッジ時間 19,514 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 7 WA * 13 TLE * 1 -- * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < n; ++i)

int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    int n,f;
    cin >> n >> f;
    bitset<9000001> bit(1);
    vector<vector<uint8_t>> a(n,vector<uint8_t>(4));
    rep(i,3)rep(j,n) cin >> a[j][i];
    rep(i,n){
        bit = (bit<<a[i][0]) | (bit<<a[i][1]) | (bit<<a[i][2]);
        cout << bit.count() << '\n';
    }
    return 0;
}
0