結果

問題 No.2560 A_1 < A_2 < ... < A_N
ユーザー aogeraaogera
提出日時 2024-03-30 16:43:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 298 ms / 2,000 ms
コード長 367 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 76,544 KB
最終ジャッジ日時 2024-03-30 16:44:02
合計ジャッジ時間 4,580 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 75 ms
75,696 KB
testcase_02 AC 71 ms
75,824 KB
testcase_03 AC 75 ms
75,696 KB
testcase_04 AC 73 ms
75,696 KB
testcase_05 AC 72 ms
75,824 KB
testcase_06 AC 264 ms
76,276 KB
testcase_07 AC 298 ms
76,276 KB
testcase_08 AC 285 ms
76,544 KB
testcase_09 AC 284 ms
76,368 KB
testcase_10 AC 273 ms
76,368 KB
testcase_11 AC 37 ms
53,460 KB
testcase_12 AC 41 ms
59,072 KB
testcase_13 AC 37 ms
53,460 KB
testcase_14 AC 39 ms
53,460 KB
testcase_15 AC 46 ms
62,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def I(): return input()
def N(): return int(input())
def M(): return map(int,input().split())
def L(): return list(map(int,input().split()))

#-----------------------------------------


T = N()
for test in range(T):
  N,X = M()
  mini = N*(N+1)//2
  
  if mini > X:
    print(-1)
    continue
  
  for i in range(N-1):
    print(i+1,end = " ")
  
  print(N + X-mini)
0