結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー titiatitia
提出日時 2023-12-08 03:50:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 571 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 17,600 KB
最終ジャッジ日時 2023-12-08 03:50:40
合計ジャッジ時間 5,004 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,856 KB
testcase_01 AC 104 ms
15,320 KB
testcase_02 AC 115 ms
15,104 KB
testcase_03 AC 105 ms
16,512 KB
testcase_04 AC 118 ms
17,080 KB
testcase_05 AC 124 ms
17,600 KB
testcase_06 AC 571 ms
9,856 KB
testcase_07 AC 542 ms
9,856 KB
testcase_08 AC 544 ms
9,856 KB
testcase_09 AC 529 ms
9,856 KB
testcase_10 AC 554 ms
9,856 KB
testcase_11 AC 28 ms
9,856 KB
testcase_12 AC 27 ms
9,984 KB
testcase_13 AC 27 ms
9,984 KB
testcase_14 AC 27 ms
9,856 KB
testcase_15 AC 28 ms
9,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
for tests in range(T):
    N,X=map(int,input().split())

    if N*(N+1)//2>X:
        print(-1)
        continue

    ANS=list(range(1,N))
    ANS.append(X-sum(ANS))

    print(*ANS)
0