Educational Codeforces Round 95 B問題
Problem description
省略
省略
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年04月24日12時41分15秒
Last modified: 2020年09月16日02時28分19秒 (by laycrs)
Tags: Competitive_Programming_Incomplete Codeforces
トップページに戻る
Logged in as: unknown user (not login)