結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー かもめのうでかもめのうで
提出日時 2023-12-02 15:05:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 382 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 90,264 KB
最終ジャッジ日時 2023-12-02 15:05:40
合計ジャッジ時間 2,417 ms
ジャッジサーバーID
(参考情報)
judge13 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,332 KB
testcase_01 AC 81 ms
84,416 KB
testcase_02 AC 81 ms
87,156 KB
testcase_03 AC 75 ms
89,932 KB
testcase_04 AC 80 ms
90,264 KB
testcase_05 AC 83 ms
89,136 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 46 ms
73,468 KB
testcase_12 AC 51 ms
75,748 KB
testcase_13 AC 46 ms
73,804 KB
testcase_14 AC 44 ms
73,172 KB
testcase_15 AC 54 ms
76,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
N = []
X = []
for _ in range(t):
    n, x = map(int, input().split())
    N.append(n)
    X.append(x)
for j in range(t):
    n = N[j]
    x = X[j]
    if n == 1:
        print(x)
        exit()
    ans = []
    for i in range(1, n):
        ans.append(i)
    sum_ans = sum(ans)
    if x-sum_ans <= ans[-1]:
        print(-1)
    else:
        print(*ans, x-sum_ans)
0