結果
| 問題 |
No.1824 門\松\列
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-05-17 14:50:31 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 83 ms / 2,000 ms |
| コード長 | 98 bytes |
| コンパイル時間 | 433 ms |
| コンパイル使用メモリ | 82,364 KB |
| 実行使用メモリ | 76,344 KB |
| 最終ジャッジ日時 | 2025-05-17 14:50:33 |
| 合計ジャッジ時間 | 1,520 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 |
ソースコード
for _ in range(int(input())):
n = int(input()) - 1
print(n * (n + 1) * (n - 1) // 3 * 2)
ntuda