結果

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

ソースコード

diff #

#include "bits/stdc++.h"

using namespace std;

void solve(void)
{
	int 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