結果
| 問題 |
No.2560 A_1 < A_2 < ... < A_N
|
| コンテスト | |
| ユーザー |
llstream
|
| 提出日時 | 2023-12-07 19:12:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 473 bytes |
| コンパイル時間 | 1,508 ms |
| コンパイル使用メモリ | 167,588 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-27 02:18:02 |
| 合計ジャッジ時間 | 3,328 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 WA * 5 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
for(int i=0;i<t;i++){
int n,x;
cin >> n >> x;
if((1+n)*n<=x*2){
for(int j=1;j<n+1;j++){
if(j!=n){
cout << j << ' ';
}
else{
cout << j+x-(1+n)*n/2 << endl;
}
}
}
else{
cout << -1 << endl;
}
}
}
llstream