while(scanf("%d %d", &min, &max) != EOF)
{
printf("%d %d %d\n", min, max, claps(min, max));
}
So it doesn't time out now, but it gives "wrong answer". And yet, I've tested it with the sample input and some of my own and it seems to perform correctly every time.
In that other thread I've realised is about this problem, they (moreover you, TripleM) think that there is an issue with this problem. Is there any way you could check the code to make sure it's working properly, or what happens now if there's a complaint about the problem?