ABC083A - Libra
問題:A - Libra
#include <iostream> using namespace std; int main(void) { int a, b, c, d; string ret = ""; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> b >> c >> d; if (a + b > c + d) { ret = "Left"; } else if (a + b < c + d) { ret = "Right"; } else { ret = "Balanced"; } cout << ret << "\n"; return 0; }