2021年06月07日22時47分52秒に更新されたバージョンを表示しています.
最新のページはこちらをご覧ください.
AtCoder Beginner Contest 165
問題文
省略
省略
C++に変換後のコードはこちら
int N, M;
int a, b, s, res1[1d5], res2[1d5];
{
rd(N,M);
a = 0;
b = M;
while(a < b){
arrInsert(s, s, res1, a, res2, b);
a++; b--;
}
a = M + 1;
b = a + M - 1;
while(a < b){
arrInsert(s, s, res1, a, res2, b);
a++; b--;
}
rep(i,s) wt(res1[i]+1, res2[i]+1);
}
Current time: 2024年04月19日09時40分09秒
Last modified: 2021年06月07日22時47分52秒 (by laycrs)
Tags: Competitive_Programming_Incomplete AtCoder AtCoder_Beginner_Contest ABC165 ABC_E
トップページに戻る
Logged in as: unknown user (not login)