Ogro
Problem LinkSolution by mateusgrl39 — 100 pts
Code / Notes
int E, D;
cin >> E >> D;
if (E > D) {
cout << E + D << endl;
} else {
cout << 2 * (D - E) << endl;
}
Last updated 1 month, 3 weeks ago
Solution by mateusgrl39 — 100 pts
int E, D;
cin >> E >> D;
if (E > D) {
cout << E + D << endl;
} else {
cout << 2 * (D - E) << endl;
}
Last updated 1 month, 3 weeks ago