結果

問題 No.1824 門\松\列
ユーザー mine691mine691
提出日時 2021-11-01 23:45:20
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 171 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 77,952 KB
最終ジャッジ日時 2024-04-19 00:38:13
合計ジャッジ時間 3,903 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
63,488 KB
testcase_01 AC 47 ms
57,472 KB
testcase_02 AC 63 ms
63,872 KB
testcase_03 TLE -
testcase_04 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
num_list = [int(input()) for _ in range(T)]

for n in num_list:
    ans = 0
    for i in range(2, n):
        ans = ans + i * i - i
    print(2 * ans)    
0