Friday, January 24, 2014

SPOJ 7745. Bingo!

Here is the problem statement
http://www.spoj.com/problems/MBINGO/

If we have a look on the constraints we can see that N<=90 and the number are in this interval as well. We just need to make a double loop and mark every number we can generate. Then can check if all the numbers are marked => we can get every single  number between 1 and N then we output "Y" else we output "N".


       DOWNLOAD THE FULL SOURCE CODE

       

No comments:

Post a Comment