結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,332 KB
testcase_01 AC 85 ms
84,284 KB
testcase_02 AC 89 ms
87,024 KB
testcase_03 AC 84 ms
89,928 KB
testcase_04 AC 89 ms
90,260 KB
testcase_05 AC 94 ms
89,140 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 52 ms
73,472 KB
testcase_12 AC 59 ms
75,880 KB
testcase_13 AC 53 ms
73,808 KB
testcase_14 AC 50 ms
73,176 KB
testcase_15 AC 61 ms
76,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for _ in range(t):
    n, x = map(int, input().split())
    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