結果

問題 No.72 そろばん Med
ユーザー momoyuu
提出日時 2022-08-17 02:23:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 5,000 ms
コード長 127 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 82,464 KB
実行使用メモリ 53,348 KB
最終ジャッジ日時 2024-10-03 21:50:45
合計ジャッジ時間 2,226 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
m = 0
for i in range(max(0,-10+n//2),n//2+10):
    now = (n-i+1)*i + n-i
    m = max(m,now)
print(m%(10**6+7))
0