Advertisement
Sumrak2

Untitled

Nov 13th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <iostream>
  2. #define ll long long
  3. using namespace std;
  4.  
  5. int main() {
  6. int r1, r2, L;
  7. cin >> r1 >> r2 >> L;
  8. if(L == 0 && r1 == r2)
  9. cout << "vse tochki obhie" << endl;
  10. else {
  11. if (r1 + r2 == L)
  12. cout << "oni imeut 1 obhyu tochku" << endl;
  13. else {
  14. if (r1 + r2 < L)
  15. cout << "oni imeut 0 obhih tochek" << endl;
  16. else
  17. cout << "oni imeut 2 obhih tochek" << endl;
  18. }
  19. if (L == 0 && r1 != r2)
  20. cout << "oni imeut 0 obhih tochek" << endl;
  21. }
  22. system("pause");
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement