Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main() {
- int t;
- cin>>t;
- while(t--){
- int n;
- cin>>n;
- if(n==1)
- cout<<1<<"\n";
- else
- {
- for(int i=0; i<n-2; i++)
- cou<<3<<t" ";
- cout<<2<<" "<<1<<"\n";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment