Advertisement
sherry_ahmos

Untitled

Nov 20th, 2022
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.97 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <string>
  4. #include <algorithm>
  5. #include <cmath>
  6. #include <vector>
  7. #include <queue>
  8. #include <map>
  9. #include <set>
  10. #include <unordered_map>
  11. #include <unordered_set>
  12. using namespace std;
  13.  
  14. #define ll long long
  15. #define nl "\n"
  16. #define cy cout << "YES\n"
  17. #define cn cout << "NO\n"
  18. #define sz(s) s.size()
  19. #define all(v) v.begin(), v.end()
  20. #define cin(vec) for (int i = 0; i < n && cin >> vec[i]; i++)
  21. #define cout(vec) for (int i = 0; i < n && cout << vec[i] << " "; i++)
  22.  
  23. void sherry()
  24. {
  25.     ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  26. #ifndef ONLINE_JUDGE
  27.     freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
  28. #endif
  29. }
  30. int main()
  31. {
  32.     sherry();
  33.     long long x, y;
  34.     cin >> x >> y;
  35.     cout << x << " + " << y << " = " << x / y << "\n";
  36.     cout << x << " * " << y << " = " << x * y << "\n";
  37.     cout << x << " - " << y << " = " << x - y << "\n";
  38.     return 0;
  39. }
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement