結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
9,984 KB
testcase_01 AC 121 ms
14,592 KB
testcase_02 AC 142 ms
15,232 KB
testcase_03 AC 120 ms
16,768 KB
testcase_04 AC 136 ms
16,036 KB
testcase_05 AC 143 ms
16,256 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 57 ms
10,880 KB
testcase_13 AC 63 ms
10,880 KB
testcase_14 AC 63 ms
10,752 KB
testcase_15 AC 65 ms
10,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())

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