結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー あ
提出日時 2023-12-13 23:03:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 294 ms / 2,000 ms
コード長 225 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 83,192 KB
最終ジャッジ日時 2023-12-13 23:03:13
合計ジャッジ時間 4,679 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 69 ms
79,864 KB
testcase_02 AC 75 ms
82,352 KB
testcase_03 AC 71 ms
80,972 KB
testcase_04 AC 80 ms
81,888 KB
testcase_05 AC 77 ms
83,192 KB
testcase_06 AC 294 ms
77,152 KB
testcase_07 AC 293 ms
77,400 KB
testcase_08 AC 288 ms
76,768 KB
testcase_09 AC 283 ms
76,748 KB
testcase_10 AC 291 ms
76,872 KB
testcase_11 AC 37 ms
53,460 KB
testcase_12 AC 42 ms
59,332 KB
testcase_13 AC 37 ms
53,460 KB
testcase_14 AC 37 ms
53,460 KB
testcase_15 AC 46 ms
62,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())
for _ in range(t):
    n, x = map(int, input().split())

    mi = (1 + n) * n // 2
    if x >= mi:
        ans = list(range(1, n + 1))
        ans[-1] += x - mi
        print(*ans)
    else:
        print(-1)
0