結果

問題 No.2281 K → K-1 01 Flip
コンテスト
ユーザー miscalc
提出日時 2023-04-20 11:10:11
言語 C++17(gcc12)
(gcc 12.4.0 + boost 1.90.0)
コンパイル:
g++-12 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 549 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,845 ms
コンパイル使用メモリ 335,316 KB
実行使用メモリ 20,644 KB
最終ジャッジ日時 2026-06-30 09:17:50
合計ジャッジ時間 12,800 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 56
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include "testlib.h"
#include <bits/stdc++.h>
using namespace std;

const int MIN_N = 2, MAX_N = 2e5;
const int MIN_Q = 1, MAX_Q = 2e5;

int main()
{
  registerValidation();
  int N = inf.readInt(MIN_N, MAX_N);
  inf.readSpace();
  int Q = inf.readInt(MIN_Q, MAX_Q);
  inf.readEoln();
  string S = inf.readToken(format("[01]{%d}", N));
  inf.readEoln();
  while (Q--)
  {
    int L = inf.readInt(1, N);
    inf.readSpace();
    int R = inf.readInt(1, N);
    inf.readSpace();
    int K = inf.readInt(1, N);
    inf.readEoln();
  }
  inf.readEof();
}
0