結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー kamath0165kamath0165
提出日時 2023-12-02 15:21:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 278 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 83,160 KB
最終ジャッジ日時 2023-12-02 15:21:27
合計ジャッジ時間 3,355 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,460 KB
testcase_01 AC 62 ms
79,708 KB
testcase_02 AC 71 ms
82,200 KB
testcase_03 AC 64 ms
81,100 KB
testcase_04 AC 68 ms
81,764 KB
testcase_05 AC 70 ms
83,160 KB
testcase_06 AC 270 ms
76,896 KB
testcase_07 AC 262 ms
76,872 KB
testcase_08 AC 278 ms
77,280 KB
testcase_09 AC 270 ms
77,132 KB
testcase_10 AC 263 ms
76,760 KB
testcase_11 AC 34 ms
53,460 KB
testcase_12 AC 39 ms
59,324 KB
testcase_13 AC 37 ms
53,460 KB
testcase_14 AC 33 ms
53,460 KB
testcase_15 AC 43 ms
62,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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