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
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
I will get 9
Is 9 wrong ?
You tell me
Ooh… sorry my bad