結果

問題 No.5011 Better Mo's Algorithm is Needed!! (Weighted)
ユーザー butsurizuki
提出日時 2022-12-11 01:24:54
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 61 ms / 5,000 ms
コード長 390 bytes
コンパイル時間 3,135 ms
実行使用メモリ 5,548 KB
スコア 128,843,782
最終ジャッジ日時 2022-12-11 01:28:15
合計ジャッジ時間 41,568 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
純コード判定しない問題か言語
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 120
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>

using namespace std;

int main(){
  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];
  }

  for(int i=0;i<q;i++){
    if(i){cout << " ";}
    cout << (i+1);
  }cout << "\n";
  return 0;
}
0