This line in your code, f,s,t=map(int,input().split(',')) is expecting three comma-separated values to be inputted.
But, according to the problem statement,
The input will contain two integers A and B.
This is why your code’s giving runtime error.
Besides that, your code isn’t actually meeting the I/O expectations. So you’ll probably get a wrong answer, too. I’d suggest you to reread the statement properly.
I have made a python code in python 3.9.5 but here is python 3.8 available… My first test copycat successfully submitted after some mistakes but my this code is showing syntax error but IDE( PyCharm) isn’t showing a single error… please check this out,
@abir123 I am noticing a few issues. But the most important one is that the two numbers A and B appear on the same line in the input file (like A B, not A\nB). So the input code should look like this:
A, B = map(int, input().split())
Also, you don’t need to check if A and B are within constraints. You can assume that c < a and b < d in your code will always be true. So just remove them and print the summation.