跳到正文

songzifan

46416

还没有收录这位用户的资料。

在洛谷打开
资料、奖项与版本

资料

编号
46416
共 1 篇
  1. 题解

    题解 P2669 【金币】

    感觉很简单吧??? #include<bits/stdc++.h> using namespace std; int s,n,m,i; int main() { cin>>n; while(m<n) { i++; s+=i*i; m+=i; } s-=(m-n)*i; cout<…