블로그 관리 쉬는 중
#include<cstdio> int n; int main() { while (scanf("%d", &n), n) printf("%d\n", n*(n + 1)*(2 * n + 1) / 6); return 0; }
댓글 없음 :
댓글 쓰기