結果
| 問題 |
No.5010 Better Mo's Algorithm is Needed!! (Unweighted)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-11 01:23:17 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 569 bytes |
| コンパイル時間 | 3,600 ms |
| 実行使用メモリ | 6,348 KB |
| スコア | 0 |
| 最終ジャッジ日時 | 2022-12-16 23:31:51 |
| 合計ジャッジ時間 | 52,758 ms |
|
ジャッジサーバーID (参考情報) |
judge14 / judge10 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 120 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
std::random_device seed_gen;
std::mt19937_64 engine(seed_gen());
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n,q,wt,st;
cin >> n >> q >> wt >> st;
vector<int> w(n);
for(int i=0;i<n;i++){cin >> w[i];}
vector<int> l(q),r(q);
for(int i=0;i<q;i++){
cin >> l[i] >> r[i];
}
vector<int> res(q);
for(int i=0;i<q;i++){
res[i]=i;
}
shuffle(res.begin(),res.end(),engine);
for(int i=0;i<q;i++){
if(i){cout << " ";}
cout << res[i];
}cout << "\n";
return 0;
}