結果
| 問題 | No.2560 A_1 < A_2 < ... < A_N |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-12-07 21:02:34 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 201 bytes |
| 記録 | |
| コンパイル時間 | 147 ms |
| コンパイル使用メモリ | 37,728 KB |
| 最終ジャッジ日時 | 2026-02-22 11:21:43 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 15 |
ソースコード
#include <stdio.h>
int main(){long long T,N,X;scanf("%d",&T);while(T-->0){scanf("%d %d",&N,&X);if(N*(N+1)/2>X){puts("-1");continue;}for(int i=1;i<=N-1;++i){printf("%lld ",i);X-=i;}printf("%lld\n",X);}}