随笔分类 -  二分搜索

摘要:Problem Description:One day, Dudu, the most clever boy, heard of ACM/ICPC, which is a very interesting game. He wants to take part in the game. But as... 阅读全文
posted @ 2015-11-04 19:08 搁浅の记忆 阅读(232) 评论(0) 推荐(0)
摘要:Problem Description:Now,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100;Now please try your lucky.... 阅读全文
posted @ 2015-09-03 22:50 搁浅の记忆 阅读(211) 评论(1) 推荐(0)
摘要:Description:You task is to find minimal natural numberN, so thatN!contains exactlyQzeroes on the trail in decimal notation. As you knowN! = 1*2*...*N.... 阅读全文
posted @ 2015-08-20 20:30 搁浅の记忆 阅读(318) 评论(0) 推荐(1)