結果

問題 No.831 都市めぐり
ユーザー a
提出日時 2019-05-24 23:30:08
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 206 bytes
コンパイル時間 1,510 ms
コンパイル使用メモリ 165,824 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-17 12:49:10
合計ジャッジ時間 2,194 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"

using namespace std;

void solve(void)
{
	long n;
	cin >> n;
	cout << (n-1)*n*(n+1)*(3*n+2)/24 << endl;
}

int main()
{
	solve();
	//cout << "yui(*-v・)yui" << endl;
	return 0;
}
0