Ogro
Problem LinkSolution by Mr.Olimpia — 100 pts
Code / Notes
#include <bits/stdc++.h>
using namespace std;
int main() {
int e;
int d;
cin >> e >> d;
if(e>d){
cout << e+d;
}
else{
cout << 2*(d-e);
}
}
Last updated 1 month, 3 weeks ago