The forum to report every bug you find or tell us what you'd like to find in UVa OJ's new system
Moderator: Board moderators
by brianfry713 » Thu Apr 19, 2012 3:45 am
I think the input data doesn't match the description. Each line is supposed to contain two natural numbers m and n (0<m<=n<100). This code returns RE:
- Code: Select all
#include <stdio.h>
int main(void) {
int m, n;
while(scanf("%d%d", &m, &n)==2)
if(m<=0||m>n||n>=100) return 1;
return 0;
}
-
brianfry713
- Guru
-
- Posts: 1765
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
by brianfry713 » Thu Mar 28, 2013 1:09 am
I made a few more submissions, and I believe there is a case where m<0 and a case where m>n. There is not a case where n>=100.
-
brianfry713
- Guru
-
- Posts: 1765
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Return to Bugs and suggestions
Who is online
Users browsing this forum: No registered users and 1 guest