题解 | #牛牛学数列4#
牛牛学数列4
https://ac.nowcoder.com/acm/problem/22159
#include<stdio.h>
int a,b,c;
int main(){
scanf("%d",&a);
for(int i=1;i<=a;i++){
c+=i;
b+=c;
}
printf("%d",b);
}
题解 文章被收录于专栏
https://ayx.moefox.tech/
牛牛学数列4
https://ac.nowcoder.com/acm/problem/22159
#include<stdio.h>
int a,b,c;
int main(){
scanf("%d",&a);
for(int i=1;i<=a;i++){
c+=i;
b+=c;
}
printf("%d",b);
}
https://ayx.moefox.tech/
相关推荐