|
|
back to board#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; if (39+2*a>a+2*b) cout << 39+2*a; else;cout << 40+2*b; return 0; } if (39 + 2 * a> 40 + 2 * b)т.к правую ногу полностью обули take maximum of this two: ansa=a*2+39; ansb=b*2+40;
|
|
|