Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4. #include <algorithm>
  5. #include <cmath>
  6.  
  7. using namespace std;
  8.  
  9. bool tr(int a, int b, int c)
  10. {
  11.     if(a + b > c && a + c > b && c + b > a)
  12.         return true;
  13.     return false;
  14. }
  15.  
  16. bool seg(int a, int b, int c)
  17. {
  18.     if(a + b == c || a + c == b || c + b == a)
  19.         return true;
  20.     return false;
  21. }
  22.  
  23. int main()
  24. {
  25.     int a, b, c, d;
  26.     cin >> a >> b >> c >> d;
  27.     if(tr(a, b, c) || tr())
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement