結果
| 問題 | No.2560 A_1 < A_2 < ... < A_N | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2023-12-02 14:55:45 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 205 ms / 2,000 ms | 
| コード長 | 372 bytes | 
| コンパイル時間 | 294 ms | 
| コンパイル使用メモリ | 82,048 KB | 
| 実行使用メモリ | 92,288 KB | 
| 最終ジャッジ日時 | 2024-09-26 17:42:30 | 
| 合計ジャッジ時間 | 3,259 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 15 | 
ソースコード
t = int(input())
ans = []
for _ in range(t):
    n,x = map(int,input().split())
    nowlist = []
    if n*(n+1)//2 <= x:
        for i in range(1,n+1):
            if i == n:
                nowlist.append(x)
            else:
                x -= i
                nowlist.append(i)
    else:
        nowlist.append(-1)
    ans.append(nowlist)
for i in ans:
    print(*i)
            
            
            
        