結果

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

ソースコード

diff #

t = int(input())
for _ in range(t):
    n, x = map(int, input().split())
    ans = []
    for i in range(1, n):
        ans.append(i)
    sum_ans = sum(ans)
    if x-sum_ans <= ans[-1]:
        print(-1)
    else:
        print(*ans, x-sum_ans)
0