結果
| 問題 |
No.831 都市めぐり
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-03 17:26:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 2,000 ms |
| コード長 | 170 bytes |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-24 07:23:03 |
| 合計ジャッジ時間 | 1,779 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
x = int(input())
if x == 1:
y = 0
else:
if x % 2 == 0:
y = (x**3 + 3*x**2 + 5*x - 6) // 6
else:
y = (x**3 + 3*x**2 + 5*x - 3) // 6
print(y)