fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char u;
  7. cin>>u;
  8. int t,n;
  9. cin>>t;
  10. while(t--){
  11. cin>>n;
  12. for(int i=0;i<n;i++){
  13. cout<<u;
  14. }
  15. cout<<endl;
  16.  
  17. }
  18. return 0;
  19. }
Success #stdin #stdout 0s 4344KB
stdin
*
5
5 2 4 3 7
stdout
*****
**
****
***
*******