結果
問題 | No.1824 門\松\列 |
ユーザー | ys |
提出日時 | 2022-03-06 23:40:41 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 162 bytes |
コンパイル時間 | 1,205 ms |
コンパイル使用メモリ | 86,772 KB |
実行使用メモリ | 81,228 KB |
最終ジャッジ日時 | 2023-09-28 15:28:43 |
合計ジャッジ時間 | 5,273 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 83 ms
79,856 KB |
testcase_01 | AC | 86 ms
75,612 KB |
testcase_02 | AC | 97 ms
76,828 KB |
testcase_03 | TLE | - |
testcase_04 | -- | - |
ソースコード
for i in range(int(input())): N = int(input()) ans = 0 for i in range(1, N + 1): ans += (N - i) * (N - i - 1) ans += (i - 1) * (i - 2) print(ans)