結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー Suchmos
提出日時 2024-12-28 18:02:35
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 687 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 597 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 16,320 KB
最終ジャッジ日時 2024-12-28 18:02:42
合計ジャッジ時間 6,776 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for _ in range(T):
    N,X=map(int,input().split())
    if N*(N+1)//2>X:
        print(-1)
    else:
        print(*[i+1 for i in range(N-1)]+[X-N*(N-1)//2])
0