結果
| 問題 |
No.3041 非対称じゃんけん
|
| コンテスト | |
| ユーザー |
houren
|
| 提出日時 | 2025-02-28 22:05:29 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 512 bytes |
| コンパイル時間 | 4,420 ms |
| コンパイル使用メモリ | 309,956 KB |
| 実行使用メモリ | 8,236 KB |
| 最終ジャッジ日時 | 2025-02-28 22:05:58 |
| 合計ジャッジ時間 | 19,008 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 WA * 23 |
ソースコード
#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<900001> 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;
}
houren