My issue
According to my testcases i get the correct answer but while submitting it is wrong
My code
#include <iostream>
using namespace std;
int main() {
// your code goes here
int i,j,l,m,k,p;
cin>>i;
cin>>j;
k=i-j;
p=k%10;
if (p==0)
{
k=k+1;
}
else if (p>=1 && p<=9)
{
k=k-1;
}
cout<<k<<"\n";
return 0;
}
Problem Link: CIELAB Problem - CodeChef