啦啦啦

061luohongtian 2020-11-07 10:38:04 3 返回题目

#include<bits/stdc++.h> using namespace std; int a[600],b[600],ans[600]; int main() { int d,coin=1,t,s=0; cin>>d; int i; for(i=d;i-coin>=0;i-=coin,coin++) { s+=coincoin; } s+=coini; cout<<s<<endl; return 0; }

{{ vote && vote.total.up }}

共 2 条回复

061luohongtian

;;

061luohongtian