Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- #include <algorithm>
- #include <cmath>
- using namespace std;
- bool tr(int a, int b, int c)
- {
- if(a + b > c && a + c > b && c + b > a)
- return true;
- return false;
- }
- bool seg(int a, int b, int c)
- {
- if(a + b == c || a + c == b || c + b == a)
- return true;
- return false;
- }
- int main()
- {
- int a, b, c, d;
- cin >> a >> b >> c >> d;
- if(tr(a, b, c) || tr())
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement