#include using namespace std; using ll=long long; void solve() { int n,k;cin>>n>>k; if(n%k||k>n) cout<<"-1"; else { int a=n/k; for(int i=1;i<=a;++i) cout<<"1 "; for(int i=a+1;i<=n;++i) cout<