結果
| 問題 | No.72 そろばん Med | 
| コンテスト | |
| ユーザー |  otsnsk | 
| 提出日時 | 2014-12-27 19:13:12 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 488 bytes | 
| コンパイル時間 | 424 ms | 
| コンパイル使用メモリ | 54,560 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-06-12 23:49:40 | 
| 合計ジャッジ時間 | 1,434 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 23 WA * 1 | 
ソースコード
#include <iostream>
#define FORR(i,b,e) for(int i=(b);i<(int)(e);++i)
#define FOR(i,e) FORR(i,0,e)
#define dump(var) cerr << #var ": " << var << "\n"
#define dumpc(con) for(auto& e: con) cerr << e << " "; cerr<<"\n"
typedef long long ll;
typedef unsigned long long ull;
const ull MODD = 1000007;
using namespace std;
int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    ull N;
    cin >> N;
    cout << (((N/2+1)%MODD)*((N-N/2+1)%MODD)-1)%MODD << endl;
    return 0;
}
            
            
            
        