fork download
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.  
  7. ios::sync_with_stdio(false);
  8. cin.tie(NULL);
  9.  
  10. int t;
  11. cin>>t;
  12.  
  13. while(t--){
  14.  
  15. int n;
  16. cin>>n;
  17.  
  18. string s;
  19.  
  20. for(int i=0; i<n; ++i){
  21.  
  22. cin>>s[i];
  23. }
  24.  
  25. cout<<s;
  26.  
  27.  
  28. }
  29.  
  30. }
Success #stdin #stdout 0s 5316KB
stdin
1
5
abcde
stdout
Standard output is empty