結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー RustyRusty
提出日時 2023-12-02 14:45:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 567 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 9,984 KB
最終ジャッジ日時 2023-12-02 14:45:38
合計ジャッジ時間 5,339 ms
ジャッジサーバーID
(参考情報)
judge12 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,856 KB
testcase_01 AC 142 ms
9,984 KB
testcase_02 AC 164 ms
9,984 KB
testcase_03 AC 141 ms
9,984 KB
testcase_04 AC 163 ms
9,984 KB
testcase_05 AC 171 ms
9,984 KB
testcase_06 AC 567 ms
9,856 KB
testcase_07 AC 553 ms
9,856 KB
testcase_08 AC 566 ms
9,856 KB
testcase_09 AC 563 ms
9,856 KB
testcase_10 AC 562 ms
9,856 KB
testcase_11 AC 30 ms
9,856 KB
testcase_12 AC 30 ms
9,984 KB
testcase_13 AC 30 ms
9,984 KB
testcase_14 AC 30 ms
9,856 KB
testcase_15 AC 31 ms
9,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())

for case in range(t):
    n,x = map(int,input().split())
    if x < n*(n+1)/2:
        print(-1)
    else:
        for i in range(n-1):
            print(i+1,end=" ")
        print(x - int((n-1)*n/2))
0