ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1504. Good Manners

To admins: Interesting...
Posted by Vasyl Biletskyy (Lviv NU) 30 Oct 2006 23:12
Interesting why this code gets Crash(2) if it is said that k <= 1000 ????

#include <stdio.h>
int main()
{
int k, r;
scanf("%d%d", &r, &k);
if(k > 1000)
throw 0;
else
printf("6 8\n");
return 0;
}
Re: To admins: Interesting...
Posted by Vasyl Biletskyy (Lviv NU) 30 Oct 2006 23:16
Sorry, I've found my mistake - R is not integer.
BUT it is not clear from problem statement...