結果
| 問題 | No.72 そろばん Med | 
| コンテスト | |
| ユーザー |  kongarishisyamo | 
| 提出日時 | 2016-05-24 09:43:39 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 235 bytes | 
| コンパイル時間 | 413 ms | 
| コンパイル使用メモリ | 55,272 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-11-21 11:54:32 | 
| 合計ジャッジ時間 | 1,181 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 24 | 
ソースコード
#include<iostream>
using namespace std;
#define NMAX 50
#define MOD 1000007
int main(){
	long long N;
	cin>>N;
	long long ans=(((N/2+1)%MOD)*((N/2+(N%2==1)+1)%MOD))%MOD;
	if(ans==0) cout<<MOD-1<<endl;
	else cout<<ans-1<<endl;
}
            
            
            
        