結果
| 問題 | No.72 そろばん Med | 
| コンテスト | |
| ユーザー |  Konton7 | 
| 提出日時 | 2019-05-11 22:18:23 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 30 ms / 5,000 ms | 
| コード長 | 106 bytes | 
| コンパイル時間 | 91 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-07-02 01:26:27 | 
| 合計ジャッジ時間 | 1,923 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 24 | 
ソースコード
n = int(input())
mod = 1000007
x = n//2 + 1
if n % 2 == 0:
    y = x
else:
	y = x + 1
print((y*x-1)%mod)
            
            
            
        