結果

問題 No.72 そろばん Med
ユーザー tetsuzuki1115tetsuzuki1115
提出日時 2018-01-15 16:32:40
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 482 bytes
コンパイル時間 689 ms
コンパイル使用メモリ 77,380 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 02:37:18
合計ジャッジ時間 1,567 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <math.h>
#include <cmath>
#include <limits.h>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <functional>
#include <stdio.h>
using namespace std;

long long MOD = 1000007;

int main() {
    
    long long N;
    cin >> N;
    
    long long a = (N/2 + 1)%MOD;
    long long b =( ( N+1 )/2 + 1 )%MOD; 
    
    cout << (a *b  - 1)%MOD << endl;
    
    
    return 0;
}
0