保存されている過去のバージョンの一覧

2020年12月29日16時15分21秒

Educational Codeforces Round 101 D問題 - Ceil Divisions

Source

Educational Codeforces Round 101 D問題
Problem description

問題概要

省略

解法

省略

cLayversion 20201229-1)のコード

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

//no-unlocked
int sz, a[2d5+20], b[2d5+20];
{
  REP(rd_int()){
    int @N, mx = N;
    sz = 0;
    rrep(i,3,N){
      if(cDiv(mx,i) == i || cDiv(mx,i) == i+1){
        arrInsert(sz, sz, a, N, b, i);
        mx = cDiv(mx,i);
      }
      arrInsert(sz, sz, a, i, b, N);
    }
    while(mx > 1){
      arrInsert(sz, sz, a, N, b, 2);
      mx = cDiv(mx,2);
    }
    wt(sz);
    rep(i,sz) wt(a[i], b[i]);
  }
}

Current time: 2024年04月30日14時40分05秒
Last modified: 2020年12月29日16時15分21秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces
トップページに戻る

Logged in as: unknown user (not login)

ログイン: