結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー rotti_coderrotti_coder
提出日時 2023-11-21 01:12:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 335 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 88,172 KB
最終ジャッジ日時 2023-11-21 01:12:41
合計ジャッジ時間 5,012 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 82 ms
83,224 KB
testcase_02 AC 86 ms
86,092 KB
testcase_03 AC 84 ms
88,172 KB
testcase_04 AC 86 ms
87,972 KB
testcase_05 AC 92 ms
87,940 KB
testcase_06 AC 274 ms
76,344 KB
testcase_07 AC 296 ms
77,032 KB
testcase_08 AC 319 ms
77,440 KB
testcase_09 AC 335 ms
77,260 KB
testcase_10 AC 293 ms
77,016 KB
testcase_11 AC 46 ms
73,060 KB
testcase_12 AC 53 ms
75,724 KB
testcase_13 AC 48 ms
73,396 KB
testcase_14 AC 46 ms
72,764 KB
testcase_15 AC 56 ms
76,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for i in range(int(input())):
  a,b=map(int,input().split())
  ans=[]
  count=0
  for i in range(a-1):
    ans.append(i+1)
    count+=i+1
  count=b-count
  if count<a:
    print(-1)
    continue
  ans.append(count)
  print(*ans)
0