結果
| 問題 |
No.2560 A_1 < A_2 < ... < A_N
|
| コンテスト | |
| ユーザー |
rotti_coder
|
| 提出日時 | 2023-11-21 01:12:36 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 301 ms / 2,000 ms |
| コード長 | 229 bytes |
| コンパイル時間 | 191 ms |
| コンパイル使用メモリ | 82,492 KB |
| 実行使用メモリ | 88,672 KB |
| 最終ジャッジ日時 | 2024-09-26 06:49:25 |
| 合計ジャッジ時間 | 3,378 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 |
ソースコード
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)
rotti_coder