11628 - Another lottery

All about problems in Volume 116. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
Nahiyan Kamal
New poster
Posts: 7
Joined: Sat Apr 04, 2009 6:40 pm

11628 - Another lottery

Post by Nahiyan Kamal »

Here is my code

Code: Select all

removed after ac
here are some input output i got from my program.

input:
5 4
3 1 2 0
3 1 2 0
3 1 3 0
4 4 4 0
5 5 0 4
1 1
1
5 4
21 21 54 87
56 89 23 21
654 987 321 0
12 56 57 59
10 20 30 60
6 4
0 0 0 0
1 1 1 1
0 0 0 0
2 5 6 4
0 2 6 1
0 0 0 0
0 0

Output:
0 / 1
0 / 1
0 / 1
0 / 1
1 / 1
1 / 1
87 / 227
21 / 227
0 / 1
59 / 227
60 / 227
0 / 1
1 / 6
0 / 1
2 / 3
1 / 6
0 / 1
Nahiyan Kamal
New poster
Posts: 7
Joined: Sat Apr 04, 2009 6:40 pm

Re: 11628 getting WA

Post by Nahiyan Kamal »

ok ive got ac, there was a silly mistake.ive removed my code.howevr these input output are ok
Shafaet_du
Experienced poster
Posts: 147
Joined: Mon Jun 07, 2010 11:43 am
Location: University Of Dhaka,Bangladesh
Contact:

Re: 11628 getting WA

Post by Shafaet_du »

2^1+2^2+2^3+2^4............+2^N<(2^N+1)

enough hint,you should be able to solve it now :wink:
Post Reply

Return to “Volume 116 (11600-11699)”