結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー くきみかんくきみかん
提出日時 2023-12-02 15:50:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 564 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 949 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 17,708 KB
最終ジャッジ日時 2023-12-02 15:50:32
合計ジャッジ時間 5,292 ms
ジャッジサーバーID
(参考情報)
judge9 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
9,984 KB
testcase_01 AC 110 ms
15,300 KB
testcase_02 AC 121 ms
15,104 KB
testcase_03 AC 109 ms
16,640 KB
testcase_04 AC 124 ms
17,404 KB
testcase_05 AC 131 ms
17,708 KB
testcase_06 AC 564 ms
9,984 KB
testcase_07 AC 559 ms
9,984 KB
testcase_08 AC 564 ms
9,984 KB
testcase_09 AC 561 ms
9,984 KB
testcase_10 AC 557 ms
9,984 KB
testcase_11 AC 40 ms
11,368 KB
testcase_12 AC 39 ms
11,264 KB
testcase_13 AC 40 ms
11,556 KB
testcase_14 AC 40 ms
11,280 KB
testcase_15 AC 40 ms
11,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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