
二分查找
文章平均质量分 57
AC__GO
程序猿
展开
-
HDOJ 2199 Can you solve this equation
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. Input The first line of the input contains an int...原创 2018-07-24 09:09:15 · 351 阅读 · 0 评论 -
SDUT-2781 二分练习
Description 给你一个序列,然后给你m个元素,让你从序列中找出与每个元素最接近的数字输出来,如果有两个就输出两个。 Input 多组输入,第一行给你两个数n(0 < n < 10000000),m(0 < m < n),接下来是数列的n个数,然后再输入m个元素,让你找出最接近每个元素的值。如果有两个,按从小到大输出。 Output 这m个数分别输...原创 2018-07-24 09:12:33 · 371 阅读 · 0 评论