結果
| 問題 |
No.2560 A_1 < A_2 < ... < A_N
|
| コンテスト | |
| ユーザー |
taku
|
| 提出日時 | 2023-12-02 18:25:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 333 ms / 2,000 ms |
| コード長 | 173 bytes |
| コンパイル時間 | 181 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 83,624 KB |
| 最終ジャッジ日時 | 2024-09-26 21:23:05 |
| 合計ジャッジ時間 | 3,857 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 |
ソースコード
T = int(input()) for _ in range(T): n,x = map(int,input().split()) k = n*(n-1)//2 if k+n>x: print(-1) else: ans = [i+1 for i in range(n)] ans[-1] = x-k print(*ans)
taku