結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー nikoro256nikoro256
提出日時 2023-12-08 02:19:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 303 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 82,440 KB
実行使用メモリ 88,320 KB
最終ジャッジ日時 2024-09-27 02:35:33
合計ジャッジ時間 3,753 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

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