結果
| 問題 | 
                            No.1824 門\松\列
                             | 
                    
| コンテスト | |
| ユーザー | 
                             mine691
                         | 
                    
| 提出日時 | 2021-11-01 23:45:41 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 171 bytes | 
| コンパイル時間 | 155 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 17,956 KB | 
| 最終ジャッジ日時 | 2024-10-10 17:35:35 | 
| 合計ジャッジ時間 | 4,148 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 2 TLE * 1 -- * 1 | 
ソースコード
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)    
            
            
            
        
            
mine691