結果

問題 No.72 そろばん Med
ユーザー oooooba
提出日時 2021-12-04 18:37:07
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 491 bytes
コンパイル時間 1,795 ms
コンパイル使用メモリ 114,372 KB
最終ジャッジ日時 2025-01-26 03:35:49
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 1 WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <optional>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>

using namespace std; // NOLINT

int main() {
    int64_t n;
    cin >> n;
    cout << ((n / 2 + 1) * (n - n / 2 + 1) - 1) % (int64_t(1e6) + 7) << endl;
    return 0;
}
0