{"provider_url":"https://hatena.blog","categories":[],"width":"100%","author_url":"https://blog.hatena.ne.jp/peroon/","title":"1515C-Phoenix and Towers","description":"Quiz https://codeforces.com/contest/1515/problem/C AC https://codeforces.com/contest/1515/submission/114914965 Solution editorial's solution : add each element to lowest my solution : sort array and put it in order i%M void solve(){ ll N,M,X; cin>>N>>M>>X; VI A(N); rep(i, N)cin >> A[i]; vector<PII> \u2026","version":"1.0","published":"2021-05-03 06:07:51","blog_url":"https://perogram.hateblo.jp/","author_name":"peroon","blog_title":"perogram","type":"rich","provider_name":"Hatena Blog","url":"https://perogram.hateblo.jp/entry/2021/05/03/060751","image_url":null,"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2F2021%2F05%2F03%2F060751\" title=\"1515C-Phoenix and Towers - perogram\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}