fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. typedef long long int ll;
  4. int main()
  5. {
  6. ll H;
  7. int N,T;
  8. cin >> T;
  9. while(T--)
  10. {
  11. cin >> H >> N;
  12. for(int i = 0;i<N-1;i++)
  13. {
  14. cout << 2*H << " ";
  15. }
  16. cout << 3*H << endl;
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0s 3464KB
stdin
1
1 4
stdout
2 2 2 3