Advertisement
newb_ie

Page 2

Aug 16th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. /*
  2. ======================
  3. [ ___T_ ]
  4. [ | 6=6 | =>HI :-)]
  5. [ |__o__| ]
  6. [ >===]__o[===< ]
  7. [ [o__] ]
  8. [ .". ]
  9. [ |_| ]
  10. [ ]
  11. ======================
  12. */
  13.  
  14. #include<bits/stdc++.h>
  15. using namespace std;
  16. using lli = int64_t;
  17. string reverse_string(string s){
  18. string res;
  19. for(int i = (int) s.size() - 1; i >= 0; i--){
  20. res += s[i];
  21. }
  22. return res;
  23. }
  24. int main(){
  25. ios::sync_with_stdio(false);
  26. cin.tie(nullptr);
  27. cout.tie(nullptr);
  28. string s;
  29. cin >> s;
  30. cout << reverse_string(s) << "\n";
  31. }
  32.  
  33. /*
  34. ======================
  35. [ ___T_ ]
  36. [ | 6=6 | =>HI :-)]
  37. [ |__o__| ]
  38. [ >===]__o[===< ]
  39. [ [o__] ]
  40. [ .". ]
  41. [ |_| ]
  42. [ ]
  43. ======================
  44. */
  45.  
  46. #include<bits/stdc++.h>
  47. using namespace std;
  48. using lli = int64_t;
  49. string reverse_string(string s){
  50. string res;
  51. for(int i = (int) s.size() - 1; i >= 0; i--){
  52. res += s[i];
  53. }
  54. return res;
  55. }
  56. int main(){
  57. ios::sync_with_stdio(false);
  58. cin.tie(nullptr);
  59. cout.tie(nullptr);
  60. string s;
  61. getline(cin,s);
  62. cout << reverse_string(s) << "\n";
  63. }
  64.  
  65.  
  66. /*
  67. ======================
  68. [ ___T_ ]
  69. [ | 6=6 | =>HI :-)]
  70. [ |__o__| ]
  71. [ >===]__o[===< ]
  72. [ [o__] ]
  73. [ .". ]
  74. [ |_| ]
  75. [ ]
  76. ======================
  77. */
  78.  
  79. #include<bits/stdc++.h>
  80. using namespace std;
  81. using lli = int64_t;
  82. void print_multiples(){
  83. for(int i = 198; i > 0; i -= 3){
  84. cout << i << "\n";
  85. }
  86. }
  87. int main(){
  88. ios::sync_with_stdio(false);
  89. cin.tie(nullptr);
  90. cout.tie(nullptr);
  91. print_multiples();
  92. }
  93.  
  94.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement