fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define int long long
  5.  
  6. const long double PI = 3.14159265359;
  7.  
  8. void solve()
  9. {
  10. int b, r;
  11. cin >> b >> r;
  12. cout << (30 - b) * (30 - r) << '\n';
  13. }
  14.  
  15. signed main(void)
  16. {
  17. ios_base::sync_with_stdio(0);
  18. cin.tie(0);
  19. cout.tie(0);
  20. if (fopen("input.txt", "r"))
  21. {
  22. freopen("input.txt", "r", stdin);
  23. freopen("output.txt", "w", stdout);
  24. }
  25. int t = 1;
  26. // cin >> t;
  27. while (t--)
  28. {
  29. solve();
  30. }
  31. return 0;
  32. }
Success #stdin #stdout 0s 544KB
stdin
8 8
stdout
484