結果
| 問題 | 
                            No.1824 門\松\列
                             | 
                    
| コンテスト | |
| ユーザー | 
                             mine691
                         | 
                    
| 提出日時 | 2021-11-01 23:45:20 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 171 bytes | 
| コンパイル時間 | 250 ms | 
| コンパイル使用メモリ | 82,352 KB | 
| 実行使用メモリ | 81,176 KB | 
| 最終ジャッジ日時 | 2024-10-10 17:35:43 | 
| 合計ジャッジ時間 | 4,143 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / 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