Yes, sorry.Jan wrote:2 1 3 means that 2 people are invited and they are 1 and 3. Hope it answers your question.
I already self-answered my question yesterday, but I forgot to delete my question.
Thanks anyway.
Yes, sorry.Jan wrote:2 1 3 means that 2 people are invited and they are 1 and 3. Hope it answers your question.
Sample Inputphars_alnmr wrote:plz could any one post some test cases & its answers
Code: Select all
10
1 10
5 10
5 15
10 20
100 400
100 1000
200 1500
500 10000
1000 15000
1 1000000
Code: Select all
125
55
252
285
3898600
79243850
256184575
82185463000
274340382250
83333708333750000