結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー LucagonLucagon
提出日時 2023-12-02 14:47:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 320 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 88,172 KB
最終ジャッジ日時 2023-12-02 14:47:38
合計ジャッジ時間 3,712 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 82 ms
83,236 KB
testcase_02 AC 85 ms
85,976 KB
testcase_03 AC 78 ms
88,172 KB
testcase_04 AC 80 ms
87,972 KB
testcase_05 AC 86 ms
87,952 KB
testcase_06 AC 267 ms
76,340 KB
testcase_07 AC 293 ms
77,032 KB
testcase_08 AC 320 ms
77,440 KB
testcase_09 AC 313 ms
77,132 KB
testcase_10 AC 293 ms
77,016 KB
testcase_11 AC 47 ms
73,056 KB
testcase_12 AC 82 ms
75,592 KB
testcase_13 AC 49 ms
73,420 KB
testcase_14 AC 46 ms
72,632 KB
testcase_15 AC 57 ms
76,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

t = int(input())

for i in range(t):
    n,x = map(int,input().split())
    ans = []
    cnt = 0
    for j in range(1,n):
        ans.append(j)
        cnt += j
    
    if x - cnt > n - 1:
        ans.append(x - cnt)
        print(*ans)
    else:
        print(-1)
0