Codeforces Beta Round #62
摘要:
昨晚做了下比赛就早早地睡了,早上爬起来一看,才蛋疼地发现第二题忘记考虑除0的情况,加了一两行代码,一交就AC了,杯具~~~~~~sum - ave*n = ( a[n] - ave)* k% + (a[n-1]-ave)*k% + (a[n-2]-ave)*k% + ... + (a[i]-ave)*k%#include <iostream>#include <cstring>#include <cstdio>#include <algorithm>#include <vector>#include <iterator># 阅读全文