MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / main

Function main

user/codeforces/6A.Triangle.cpp:6–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4int a[5];
5
6int main()
7{
8
9 for(int i=1;i<=4;i++) cin>>a[i];
10 sort(a+1,a+5);
11 if(a[1]+a[2]>a[3]||a[2]+a[3]>a[4]) cout<<"TRIANGLE"<<endl;
12 else if(a[1]+a[2]==a[3]||a[2]+a[3]==a[4]) cout<<"SEGMENT"<<endl;
13 else cout<<"IMPOSSIBLE"<<endl;
14
15
16 return 0;
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected