結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,856 KB
testcase_01 AC 131 ms
14,976 KB
testcase_02 AC 147 ms
15,872 KB
testcase_03 AC 130 ms
17,664 KB
testcase_04 AC 147 ms
16,684 KB
testcase_05 AC 154 ms
17,024 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 69 ms
10,624 KB
testcase_12 AC 66 ms
10,752 KB
testcase_13 AC 66 ms
10,752 KB
testcase_14 AC 65 ms
10,624 KB
testcase_15 AC 65 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())

for i in range(t):
    n,x = map(int,input().split())
    tp = []
    if n == x:
        print(x)
        continue
    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