Codeforces Deltix Round, Spring 2021 E問題 - Crypto Lights

Source

Codeforces Deltix Round, Spring 2021 E問題 (2250pt)
Problem description

問題概要

省略

解法

省略

cLayversion 20210607-1)のコード

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

//no-unlocked
Comb<Modint> c;
{
  REP(rd_int()){
    ll @N, @K, chk;
    Modint res = 1;
    rep(i,1,N+1){
      chk = N - (K-1) * (i-1);
      if(chk < 0) break;
      res += c.C(chk, i) / c.C(N, i);
    }
    wt(res);
  }
}

Current time: 2024年04月26日07時33分04秒
Last modified: 2021年06月07日19時36分31秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces
トップページに戻る

Logged in as: unknown user (not login)

ログイン: