結果

問題 No.1824 門\松\列
ユーザー mine691mine691
提出日時 2021-11-01 23:45:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 171 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 16,640 KB
最終ジャッジ日時 2024-04-19 00:38:06
合計ジャッジ時間 4,191 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
16,256 KB
testcase_01 AC 296 ms
10,752 KB
testcase_02 AC 150 ms
10,752 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