結果
| 問題 |
No.72 そろばん Med
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-08 08:44:49 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 265 bytes |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 81,408 KB |
| 最終ジャッジ日時 | 2024-09-25 23:37:49 |
| 合計ジャッジ時間 | 12,705 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 23 |
ソースコード
from collections import *
from functools import *
from itertools import *
from heapq import *
import sys,math
input = sys.stdin.readline
N = int(input())
ans = -1
for i in range(N):
j = N - i
ans = max(ans,(i+1)*(j+1)- 1)
print(ans%(10**6 + 7))