×
解除綁定,重新設定系統帳號的密碼
您的系統帳號 ID:
您的系統帳號:
您的帳號暱稱:
設定新密碼:
設定新密碼:
×
請輸入要加入的「課程代碼」
請向開設課程的使用者索取「課程代碼」
Problems
Submissions
Rank
Forum
Contest
Login
Register
New Thread
#36087:
yh7624908@gmail.com
(黃鈺盛)
School : No School
ID : 224153
×
傳送站內訊息
To:
Subject:
Content:
IP address : [140.119.193.7]
Last Login :
2023-02-20 00:06:19
a111.
12149 - Feynman
--
UVa
12149
| From: [1.163.232.208] | Post Date : 2023-07-05 12:33
#include<stdio.h>
#include<string.h>
int main(){
int which;
while(scanf("%d", &which) != EOF){
if(which == 0) continue;
int n = 0;
for(int i = 1; i <= which; i++){
n += i * i;
}
printf("%d\n", n);
}
return 0;
}
ZeroJudge Forum