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

2020年09月16日02時28分19秒

Educational Codeforces Round 95 B問題 - Negative Prefixes

Source

Educational Codeforces Round 95 B問題
Problem description

問題概要

省略

解法

省略

cLayversion 20200916-1)のコード

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

//no-unlocked
int N, A[100], L[100];
int sz, arr[100];
{
  REP(rd_int()){
    rd(N,A(N),L(N));
    sz = 0;
    rep(i,N) if(L[i]==0) arr[sz++] = A[i];
    sortA(sz, arr);
    rep(i,N) if(L[i]==0) A[i] = arr[--sz];
    wt(A(N));
  }
}

Current time: 2024年05月06日15時37分20秒
Last modified: 2020年09月16日02時28分19秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces
トップページに戻る

Logged in as: unknown user (not login)

ログイン: