fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4. const int Mod=1e9+7;
  5. const ll INF = 10000000000000;
  6. const int N = 1e6+7;
  7.  
  8. void solve() {
  9. int n;
  10. cin >> n ;
  11. cout << 1;
  12. for(int i=1;i<n;i++) cout << 0;
  13. cout << '\n';
  14. }
  15. int main(){
  16. ios::sync_with_stdio(false);
  17. cin.tie(nullptr);
  18.  
  19. int t;
  20. cin >> t;
  21. while (t--) solve();
  22.  
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0.01s 5316KB
stdin
3
1
2
3
stdout
1
10
100