AtCoder Beginner Contest 217
問題文
省略
省略
C++に変換後のコードはこちら
int st = 0, ed = 0, arr[2d5];
Heap<int> hp;
hp.walloc(2d5);
REP(rd_int()){
int @T;
if(T==1) arr[ed++] = rd_int();
if(T==2) wt(if[hp.size, hp.pop(), arr[st++]]);
if(T==3){
rep(i,st,ed) hp.push(arr[i]);
st = ed = 0;
}
}
Current time: 2024年04月20日03時55分23秒
Last modified: 2021年09月16日00時09分30秒 (by laycrs)
Tags: Competitive_Programming_Incomplete AtCoder AtCoder_Beginner_Contest ABC217 ABC_E
トップページに戻る
Logged in as: unknown user (not login)