Advertisement
Mohammad_Dipu_Sultan

uva-483

Jul 6th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5.  
  6.  
  7. int main() {
  8.  
  9. string str,tmp;
  10.  
  11. while(getline(cin,str)) {
  12.  
  13. istringstream iss(str);
  14.  
  15. iss>>tmp;
  16.  
  17. reverse(tmp.begin(),tmp.end());cout<<tmp;
  18.  
  19. while(iss>>tmp) {
  20.  
  21. reverse(tmp.begin(),tmp.end());
  22.  
  23. cout<<" " <<tmp;
  24.  
  25. }
  26.  
  27. puts("");
  28.  
  29. }
  30.  
  31. return 0;
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement