結果
問題 |
No.2560 A_1 < A_2 < ... < A_N
|
ユーザー |
|
提出日時 | 2023-12-06 21:23:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 295 ms / 2,000 ms |
コード長 | 218 bytes |
コンパイル時間 | 490 ms |
コンパイル使用メモリ | 82,312 KB |
実行使用メモリ | 84,288 KB |
最終ジャッジ日時 | 2024-09-27 01:49:03 |
合計ジャッジ時間 | 3,840 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 15 |
ソースコード
for _ in range(int(input())): n, x = map(int, input().split()) if x < n * (n + 1) // 2: print(-1) continue ANS = [i for i in range(1, n + 1)] ANS[-1] = x - sum(ANS[:-1]) print(*ANS)