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
#include <cassert>
#include <iostream>
int main()
{
int lower,upper;
// 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;
}
return 0;
}
Can it be that something is going on with the testvectors ?
