WA in CIELAB

I am trying to solve this question

using namespace std;

int main() {
	int a,b;
	cin>>a>>b;
	cout<<(a-b)-1;
	return 0;
}

This is giving me WA. What’s wrong in my code ? Thanks in advance

Consider the testcase:

20 10
1 Like

I will get 9

Is 9 wrong ?

You tell me :slight_smile:

1 Like

Ooh… sorry my bad

1 Like