>>342
#include<stdio.h>
int main(){
int n = 1, sum = 0;
while(sum <= 2000){
sum += n * n;
n++;
}
printf("n=%d 合計=%d\n", n-1, sum);
return 0;
}