結果

問題 No.1824 門\松\列
ユーザー Akisawa3
提出日時 2022-02-12 22:45:48
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 225 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 125,492 KB
最終ジャッジ日時 2024-06-29 01:58:17
合計ジャッジ時間 10,025 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 2 TLE * 1 -- * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.special import perm

T = int(input())
qs = [int(input()) for _ in range(T)]
mq = max(qs)
s = []
for j in range(3, mq+1):
        p = perm(j, 2, exact=True)
        s.append(p*2)
for q in qs:
    print(sum(s[:q-2]))
0