結果
| 問題 | No.2560 A_1 < A_2 < ... < A_N | 
| コンテスト | |
| ユーザー |  Rusty | 
| 提出日時 | 2023-12-02 14:45:32 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 620 ms / 2,000 ms | 
| コード長 | 218 bytes | 
| コンパイル時間 | 163 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-09-26 17:18:03 | 
| 合計ジャッジ時間 | 5,625 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 15 | 
ソースコード
t = int(input())
for case in range(t):
    n,x = map(int,input().split())
    if x < n*(n+1)/2:
        print(-1)
    else:
        for i in range(n-1):
            print(i+1,end=" ")
        print(x - int((n-1)*n/2))
            
            
            
        