結果

問題 No.1824 門\松\列
ユーザー 👑 KazunKazun
提出日時 2022-01-28 21:31:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 86,876 KB
実行使用メモリ 76,648 KB
最終ジャッジ日時 2023-08-28 19:13:25
合計ジャッジ時間 1,340 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,108 KB
testcase_01 AC 70 ms
71,364 KB
testcase_02 AC 72 ms
71,468 KB
testcase_03 AC 83 ms
76,648 KB
testcase_04 AC 71 ms
71,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
write=sys.stdout.write

T=int(input())
Ans=[0]*T
for t in range(T):
    N=int(input())
    Ans[t]=2*N*(N-1)*(N-2)//3

write("\n".join(map(str,Ans)))
0