結果
問題 | No.2560 A_1 < A_2 < ... < A_N |
ユーザー | hirayuu_yc |
提出日時 | 2023-12-02 15:22:32 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 280 ms / 2,000 ms |
コード長 | 258 bytes |
コンパイル時間 | 361 ms |
コンパイル使用メモリ | 82,496 KB |
実行使用メモリ | 88,832 KB |
最終ジャッジ日時 | 2024-09-26 18:33:58 |
合計ジャッジ時間 | 3,481 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 15 |
ソースコード
T=int(input()) for i in range(T): N,X=map(int,input().split()) ans=[] add=0 for j in range(N-1): X-=j+1 ans.append(j+1) if len(ans)!=0 and ans[-1]>=X: print(-1) else: ans.append(X) print(*(ans))