hf99 • 24天前
using namespace std; int main(){
int k,xjb=1,zjb=0,xts=0,zts=0,total=1; cin>>k; while(zts<k){ xts++; zjb+=total; zts++; if(xts==total) { total++; xts=0; } } cout<<zjb;
return 0; }
评论:
请先登录,才能进行评论