Educational Codeforces Round 102 C問題 - No More Inversions

Source

Educational Codeforces Round 102 C問題
Problem description

問題概要

省略

解法

省略

cLayversion 20210227-1)のコード

C++に変換後のコードはこちら

//no-unlocked
int res[1d5];
{
  REP(rd_int()){
    int @N, @K;
    rep(i,K) res[i] = i + 1;
    reverse(res+2*K-N-1, res+K);
    wt(res(K));
  }
}

Current time: 2024年04月26日07時26分47秒
Last modified: 2021年02月27日13時04分12秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces
トップページに戻る

Logged in as: unknown user (not login)

ログイン: