TOPIC
WA 5% - C++
IvesM.Watanabe asked 4 years ago
include <bits/stdc++.h>
using namespace std;
int main() { int a, b, c;
cin >> a >> b >> c;
if(a > b && b <= c)cout << ":)\n";
else if(a < b && b < c && c - b > b - a) cout << ":)\n";
else if(a > b && b > c && c - b > b - a) cout << ":)\n";
else if(a == b && b < c) cout << ":)\n";
else if(a == b && b == c) cout << ":(\n";
else cout << ":(\n";
return 0;
}
This topic has not been answered yet. Be the first!