結果

問題 No.72 そろばん Med
ユーザー あかりき
提出日時 2021-02-08 12:25:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 107 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-07-05 08:47:03
合計ジャッジ時間 2,206 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
mod=10**6+7
if n%2==0:
  print(((n//2+1)**2-1)%mod)
else:
  print(((n//2+1)*(n//2+2)-1)%mod)
0