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

2019年09月01日00時51分34秒

Codeforces Round #582 DIV3 C問題 - Book Reading

Source

Codeforces Round #582 DIV3 C問題
Problem description

問題概要

省略

解法

省略

cLayversion 20190830-1)のコード

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

//no-unlocked
int Q;
ll N, M;
{
  int i, d;
  ll res;
  rd(Q);
  rep(Q){
    rd(N,M);
    d = 0;
    rep(i,10) d += (i*M) % 10;
    N /= M;
    res = d * (N / 10);
    N %= 10;
    rep(i,N) res += ((i+1)*M) % 10;
    wt(res);
  }
}

Current time: 2024年04月20日06時38分28秒
Last modified: 2019年09月01日00時51分34秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces CF582 CF_Div3_C
トップページに戻る

Logged in as: unknown user (not login)

ログイン: