結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー manabeaimanabeai
提出日時 2023-12-02 16:58:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 239 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 17,792 KB
最終ジャッジ日時 2023-12-02 16:58:22
合計ジャッジ時間 2,799 ms
ジャッジサーバーID
(参考情報)
judge10 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,984 KB
testcase_01 AC 117 ms
15,104 KB
testcase_02 AC 131 ms
16,000 KB
testcase_03 AC 139 ms
17,792 KB
testcase_04 AC 133 ms
16,804 KB
testcase_05 AC 138 ms
17,152 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 59 ms
10,752 KB
testcase_12 AC 62 ms
10,880 KB
testcase_13 AC 60 ms
10,880 KB
testcase_14 AC 61 ms
10,752 KB
testcase_15 AC 61 ms
10,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())

for i in range(t):
    n,x = map(int,input().split())
    tp = []
    for i in range(1,n):
        tp.append(i)
        x -= i
    if x > tp[-1]:
        tp.append(x)
        print(*tp,sep=" ")
    else:
        print(-1)
0