結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー raspberry1729raspberry1729
提出日時 2023-12-02 14:51:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 545 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 473 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 17,708 KB
最終ジャッジ日時 2023-12-02 14:51:41
合計ジャッジ時間 5,037 ms
ジャッジサーバーID
(参考情報)
judge11 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,984 KB
testcase_01 AC 111 ms
15,300 KB
testcase_02 AC 124 ms
15,104 KB
testcase_03 AC 112 ms
16,640 KB
testcase_04 AC 127 ms
17,404 KB
testcase_05 AC 134 ms
17,708 KB
testcase_06 AC 539 ms
9,984 KB
testcase_07 AC 545 ms
9,984 KB
testcase_08 AC 539 ms
9,984 KB
testcase_09 AC 535 ms
9,984 KB
testcase_10 AC 534 ms
9,984 KB
testcase_11 AC 28 ms
9,984 KB
testcase_12 AC 29 ms
10,112 KB
testcase_13 AC 29 ms
10,112 KB
testcase_14 AC 29 ms
9,984 KB
testcase_15 AC 30 ms
10,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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