Codeforces Round #462 (Div. 2) D - A Determined Cleanup “消元”
思路:按题意模拟一下,可以知道目的就是“消元”;消去系数大于等于k的项的时候,将余数放入答案序列;#include#include#include#include#include#include#include#include#include#include#include#include#include#pragmacomment(linker,"/STACK:102400000,1024000