結果
| 問題 |
No.3041 非対称じゃんけん
|
| コンテスト | |
| ユーザー |
houren
|
| 提出日時 | 2025-02-28 22:13:32 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 511 bytes |
| コンパイル時間 | 4,388 ms |
| コンパイル使用メモリ | 316,752 KB |
| 実行使用メモリ | 8,236 KB |
| 最終ジャッジ日時 | 2025-02-28 22:13:54 |
| 合計ジャッジ時間 | 22,060 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 WA * 18 TLE * 5 |
ソースコード
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("O2")
#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