ABC116A - Right Triangle
#include <algorithm> #include <iostream> using namespace std; int main(void) { int n[3]; cin.tie(0); ios::sync_with_stdio(false); cin >> n[0] >> n[1] >> n[2]; sort(n, n + 3); cout << (n[0] * n[1]) / 2 << "\n"; return 0; }
#include <algorithm> #include <iostream> using namespace std; int main(void) { int n[3]; cin.tie(0); ios::sync_with_stdio(false); cin >> n[0] >> n[1] >> n[2]; sort(n, n + 3); cout << (n[0] * n[1]) / 2 << "\n"; return 0; }