SPOJ FRSCR question WA

spoj binary-search

Could you help me out with the following ?

https://discuss.codechef.com/questions/126890/spoj-frscr-question-wa

Thank you. 

shivhek25
Shivam Singhal
shivhek25

Please Log in to answer

Note: Your answer should not be too short. Please wait a few seconds for the editor to load



Please make sure the answer is not too short

2 Answers

shubhgup
shubhgup 15:09, May 18
Shubham Gupta

I think you missed the point that all the tables should be queried ....

consider the case

1

100

10 9

1 1 1 1 1 1 1 1 1 1

99 99 99 99 99 99 99 99 99

In this case 10 tables are privided to group B ,but only 9 queries are done...

Hence the project is incomplete.

 




Please make sure the answer is not too short
4 Upvotes
shivhek25
shivhek25 00:27, May 24
Shivam Singhal

So, basically I need to check whether the number of tables sent by A are equal to the number of tables qqueried on by B, right ? But where do I add tha condition ? 




Please make sure the answer is not too short
0 Upvotes
Comments
No Comments yet