結果

問題 No.1824 門\松\列
ユーザー titiatitia
提出日時 2022-01-28 21:37:08
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 134 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 7,984 KB
最終ジャッジ日時 2023-08-28 19:22:17
合計ジャッジ時間 690 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,840 KB
testcase_01 AC 14 ms
7,852 KB
testcase_02 AC 15 ms
7,984 KB
testcase_03 AC 30 ms
7,772 KB
testcase_04 AC 17 ms
7,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

T=int(input())

for tests in range(T):
    N=int(input())

    print(N*(N-1)*(N-2)*2//3)

    
0