×
解除綁定,重新設定系統帳號的密碼
您的系統帳號 ID:
您的系統帳號:
您的帳號暱稱:
設定新密碼:
設定新密碼:
×
請輸入要加入的「課程代碼」
請向開設課程的使用者索取「課程代碼」
Problems
Submissions
Rank
Forum
Contest
Login
Register
New Thread
#17806: line 3 WA
rexwu1104@gmail.com
(黑雪公主 Black Lotus)
School:
新北市私立南山高級中學
ID:
93041
×
傳送站內訊息
To:
Subject:
Content:
IP address:
[49.216.131.103]
註冊時間:
2019-03-01 14:26:51
Last Login:
2024-06-06 19:28:43
d096.
00913 - Joana and the Odd Numbers
--
UVa
913
| From: [111.249.32.158] | Post Date: 2019-05-22 15:33
#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
using namespace std;
int main()
{
long long int a;
while (cin >> a) {
unsigned long long int n=(a+1)/2, num=(pow(n,2)*2-3)*3;
cout << num << endl;
}
}