結果
| 問題 |
No.2560 A_1 < A_2 < ... < A_N
|
| コンテスト | |
| ユーザー |
oginoshikibu
|
| 提出日時 | 2023-12-02 14:52:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 290 ms / 2,000 ms |
| コード長 | 193 bytes |
| コンパイル時間 | 427 ms |
| コンパイル使用メモリ | 82,220 KB |
| 実行使用メモリ | 83,572 KB |
| 最終ジャッジ日時 | 2024-09-26 17:35:45 |
| 合計ジャッジ時間 | 3,596 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 |
ソースコード
for _ in range(int(input())):
n,x=map(int, input().split())
if (n*(n+1))//2>x:
print(-1)
continue
L=[i for i in range(1,n+1)]
L[-1]+=x-(n*(n+1))//2
print(*L)
oginoshikibu