結果
問題 |
No.1824 門\松\列
|
ユーザー |
|
提出日時 | 2022-02-12 22:56:37 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 290 bytes |
コンパイル時間 | 202 ms |
コンパイル使用メモリ | 81,664 KB |
実行使用メモリ | 64,640 KB |
最終ジャッジ日時 | 2024-06-29 02:10:40 |
合計ジャッジ時間 | 815 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | RE * 4 |
ソースコード
from scipy.special import perm from itertools import accumulate T = int(input()) qs = [int(input()) for _ in range(T)] mq = max(qs) s = [] for j in range(3, mq+1): p = perm(j-1, 2, exact=True) s.append(p*2) accum_s = list(accumulate(s)) for q in qs: print(accum_s[q-3])