結果
| 問題 | No.72 そろばん Med | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-01-25 19:00:18 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 38 ms / 5,000 ms | 
| コード長 | 187 bytes | 
| コンパイル時間 | 207 ms | 
| コンパイル使用メモリ | 82,448 KB | 
| 実行使用メモリ | 53,836 KB | 
| 最終ジャッジ日時 | 2024-12-17 13:20:54 | 
| 合計ジャッジ時間 | 2,381 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 24 | 
ソースコード
import sys
def input(): return sys.stdin.readline().rstrip()
def main():
    N = int(input())
    print(((1+N//2) * (1+N-N//2)-1) % (10**6+7))
if __name__ == '__main__':
    main()
            
            
            
        