結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー 👑 KazunKazun
提出日時 2024-01-21 00:52:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 330 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 2,714 ms
コンパイル使用メモリ 81,444 KB
実行使用メモリ 83,096 KB
最終ジャッジ日時 2024-01-21 00:52:17
合計ジャッジ時間 4,447 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,332 KB
testcase_01 AC 70 ms
79,672 KB
testcase_02 AC 77 ms
82,292 KB
testcase_03 AC 73 ms
81,920 KB
testcase_04 AC 76 ms
83,096 KB
testcase_05 AC 79 ms
82,960 KB
testcase_06 AC 330 ms
77,148 KB
testcase_07 AC 300 ms
77,160 KB
testcase_08 AC 330 ms
77,144 KB
testcase_09 AC 308 ms
77,028 KB
testcase_10 AC 303 ms
77,032 KB
testcase_11 AC 43 ms
62,460 KB
testcase_12 AC 46 ms
64,216 KB
testcase_13 AC 43 ms
62,688 KB
testcase_14 AC 42 ms
62,260 KB
testcase_15 AC 50 ms
65,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    N, X = map(int, input().split())

    if N == 1:
        return [X]

    A = list(range(1, N))
    A.append(X - sum(A))
    return A if A[-2] < A[-1] else [-1]

#==================================================
T = int(input())
for t in range(T):
    print(*solve())
0