結果
| 問題 | No.2560 A_1 < A_2 < ... < A_N |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-12-02 15:21:20 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 194 ms / 2,000 ms |
| コード長 | 185 bytes |
| 記録 | |
| コンパイル時間 | 228 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 86,156 KB |
| 最終ジャッジ日時 | 2026-04-13 19:30:08 |
| 合計ジャッジ時間 | 3,127 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 |
ソースコード
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)