結果
問題 | No.72 そろばん Med |
ユーザー |
|
提出日時 | 2024-09-29 08:10:39 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 158 bytes |
コンパイル時間 | 476 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 24,264 KB |
最終ジャッジ日時 | 2024-09-29 08:10:54 |
合計ジャッジ時間 | 12,962 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 23 |
ソースコード
N = int(input()) maxim = 0 for i in range(1, N + 1): t = i + ((N - i) * (i + 1)) if t > maxim: maxim = t print(maxim % 1000007)