結果
| 問題 | No.72 そろばん Med |
| コンテスト | |
| ユーザー |
srup٩(๑`н´๑)۶
|
| 提出日時 | 2016-08-26 15:37:32 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 5,000 ms |
| コード長 | 159 bytes |
| 記録 | |
| コンパイル時間 | 162 ms |
| コンパイル使用メモリ | 77,072 KB |
| 最終ジャッジ日時 | 2025-12-03 21:18:24 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
n = input() mod = 1000007 x1 = n / 2 x2 = n / 2 + 1 ans = 0 ans = max(ans, -(x1 * x1) + (x1 * n) + n) ans = max(ans, -(x2 * x2) + (x2 * n) + n) print ans % mod
srup٩(๑`н´๑)۶