fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #ifndef M
  4. #define M 1000000007
  5. #endif
  6. typedef pair<int,int>pp;
  7. typedef std::vector<pp> vpp;
  8. typedef long long ll;
  9. #ifndef pb
  10. #define pb push_back
  11. #endif
  12. int min(int x,int y){return(x<y)?x:y;}
  13. int max(int x,int y){return(x>y)?x:y;}
  14. int main()
  15. {
  16. int t;
  17. scanf("%d",&t);
  18. while(t--)
  19. {
  20. int n,m;
  21. scanf("%d %d",&n,&m);
  22. for(int i=1;i<m;++i)
  23. printf("%d ",2*n);
  24. printf("%d\n",3*n);
  25. }
  26. return 0;
  27. }
Success #stdin #stdout 0s 3460KB
stdin
1
1 4
stdout
2 2 2 3