Educational Codeforces Round 77 A問題 - Heating

Source

Educational Codeforces Round 77 A問題
Problem description

問題概要

省略

解法

省略

cLayversion 20200214-1)のコード

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

//no-unlocked
int C, S;
{
  REP(rd_int()){
    rd(C,S);
    wt( ((S/C)**2) * (C-S%C) + ((S/C+1)**2) * (S%C) );
  }
}

Current time: 2024年03月29日09時40分10秒
Last modified: 2020年02月16日15時09分09秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces
トップページに戻る

Logged in as: unknown user (not login)

ログイン: