You are viewing a single comment's thread. Return to all comments →
string fairRations(vector B) { int result=0; int n=B.size(); for (int i=0;i
} return B[B.size() - 1] % 2 == 0 ? to_string(result*2) : "NO";
}
Seems like cookies are disabled on this browser, please enable them to open this website
Fair Rations
You are viewing a single comment's thread. Return to all comments →
string fairRations(vector B) { int result=0; int n=B.size(); for (int i=0;i
}