Page 1 of 1

1246 - Find Terrorists

Posted: Fri Nov 25, 2011 10:01 am
by drubo
Gettig WA ....
Need some critical input & output...........

Here is my output
Input:
3
0 0
0 100
65 1

Output:
-1
2 3 4 5 7 8 9 11 13 16 17 19 23 25 27 29 30 31 32 37 41 42 43 47 49 53 59 60 61 64 66 67 70 71 73 78 79 81 83 84 89 90 97
2 3 4 5 7 8 9 11 13 16 17 19 23 25 27 29 30 31 32 37 41 42 43 47 49 53 59 60 61 64

//////////////
is there any problem in the output??????????????????????

Re: 1246 ---- WA >> Plaese help.....

Posted: Sat Nov 26, 2011 3:40 pm
by helloneo
input

Code: Select all

1
0 100
My output

Code: Select all

2 3 4 5 7 9 11 13 16 17 19 23 25 29 31 37 41 43 47 49 53 59 61 64 67 71 73 79 81 83 89 97
My AC code also assume that H is always greater than or equal to L

Re: 1246 ---- WA >> Plaese help.....

Posted: Sat Nov 26, 2011 9:03 pm
by drubo
Finally i point out my error........ thanx bro.....
AC..NOW>>>>>>>>>

Re: 1246 ---- WA >> Plaese help.....

Posted: Wed Jun 20, 2012 9:06 am
by magurmach
For Those who are suffering for the lack of higher limit I can guarantee 0<=L<= H<=10000