結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー RYOH2718RYOH2718
提出日時 2023-12-02 14:55:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 360 bytes
コンパイル時間 153 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 88,176 KB
最終ジャッジ日時 2023-12-02 14:55:46
合計ジャッジ時間 3,587 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 75 ms
83,228 KB
testcase_02 AC 82 ms
85,968 KB
testcase_03 AC 70 ms
88,176 KB
testcase_04 AC 74 ms
87,976 KB
testcase_05 AC 76 ms
87,944 KB
testcase_06 WA -
testcase_07 AC 275 ms
76,908 KB
testcase_08 AC 302 ms
77,244 KB
testcase_09 WA -
testcase_10 AC 262 ms
76,892 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def INT():
    return int(input())


def MI():
    return map(int, input().split())


def LI():
    return list(map(int, input().split()))


T = INT()
for _ in range(T):
    N, X = MI()
    if N * (N + 1) // 2 > X:
        print(-1)

    A = []
    for i in range(1, N):
        A.append(i)
        X -= i
    A.append(X)
    print(*A)
0