結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー kemuniku
提出日時 2023-12-02 14:42:02
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 248 bytes
コンパイル時間 415 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 88,540 KB
最終ジャッジ日時 2024-09-26 17:11:09
合計ジャッジ時間 2,727 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10 RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for i in range(T):
    N,X = map(int,input().split())
    ans = []
    for i in range(N-1):
        ans.append(i+1)
        X -= i+1
    if ans[-1] < X:
        ans.append(X)
        print(*ans)
    else:
        print(-1)
        
0