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

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

Codeforces Round #582 DIV3 B問題 - Bad Prices

Source

Codeforces Round #582 DIV3 B問題
Problem description

問題概要

省略

解法

省略

cLayversion 20190830-1)のコード

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

//no-unlocked
int T, N, A[150000];
{
  int i, mn, res;
  rd(T);
  rep(T){
    rd(N,A(N));
    mn = int_inf;
    res = 0;
    for(i=N-1;i>=0;i--){
      mn <?= A[i];
      if(mn < A[i]) res++;
    }
    wt(res);
  }
}

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

Logged in as: unknown user (not login)

ログイン: