When I upload the following code I always get a runtime error, meaning the assertions got triggered (and I already put them extra wide from the problem definition it should only be >0 and <10000. When I remove the assertions I get the regular 'wrong answer'.
- Code: Select all
// while(std::cin >> lower >> upper)
while(scanf("%d %d",&upper, &lower) != EOF)
assert(lower>=0 && lower <=10000);
assert(upper>=0 && upper <=10000);
std::cout << lower << " " << upper << " 0" << std::endl;
Can it be that something is going on with the testvectors ?