結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー yaakiyuyaakiyu
提出日時 2023-12-02 14:49:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 146 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 83,092 KB
最終ジャッジ日時 2023-12-02 14:49:59
合計ジャッジ時間 2,726 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,460 KB
testcase_01 AC 69 ms
79,784 KB
testcase_02 AC 77 ms
82,400 KB
testcase_03 AC 70 ms
81,904 KB
testcase_04 AC 80 ms
82,948 KB
testcase_05 AC 78 ms
83,092 KB
testcase_06 AC 136 ms
76,828 KB
testcase_07 AC 139 ms
76,836 KB
testcase_08 AC 144 ms
76,956 KB
testcase_09 AC 132 ms
76,844 KB
testcase_10 AC 146 ms
77,152 KB
testcase_11 AC 37 ms
53,460 KB
testcase_12 AC 42 ms
59,340 KB
testcase_13 AC 38 ms
53,460 KB
testcase_14 AC 37 ms
53,460 KB
testcase_15 AC 45 ms
62,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline()[:-1]

t = int(input())

for i in range(t):
    n, x = map(int, input().split())
    p = x - n*(n-1)//2
    if p < n:
        print(-1)
    else:
        print(*range(1, n), p)
0