結果

問題 No.72 そろばん Med
ユーザー LogicR_piman
提出日時 2016-10-21 23:51:51
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 645 ms
コンパイル使用メモリ 53,464 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-23 16:51:00
合計ジャッジ時間 1,877 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 1 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>

using namespace std;

int main() {
	long long n, h, ans;

	cin >> n;

	h = n / 2 + 1;

	ans = (h*(h + 1) - 1) % 1000007;

	cout << ans << endl;

	return 0;
}
0