My issue
In 2nd test case why cant we perform , A2 = A1 and make 2 → 8 and thus maximize value of 2 to 8 instead of 2 to 3 ?
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
return 0;
}
Learning course: Level up from 1* to 2*
Problem Link: CodeChef: Practical coding for everyone