Wrong solution being accepted


#1

do check for 8 5 3 answer should be 5
x=A%B;
return (x+c-1)%B

this is a wrong solution but being accepted as it does not work on 8 5 3
this gives 0 but answer should be 5(same in expected output)


#2

THOUGH RIGHT ONE IS ALSO GETTING ACCEPTED !:sweat_smile::sweat_smile:

int Solution::solve(int A, int B, int C)
{
int cir = (C+A-1) % B;
if(cir == 0)
return B;
return cir;
}


#3

This hasn’t been fixed yet