洛谷 P1678 烦恼的高考志愿 Python题解
题目思路很简单的二分查找,关键在于l<r-1模糊查找,找到了最接近的两个数,再比较差的绝对值,找到...
题目思路很简单的二分查找,关键在于l<r-1模糊查找,找到了最接近的两个数,再比较差的绝对值,找到...
题目思路时间短的人优先即可。。题解n = int(input()) list = list(map(in...
前言其实道题在寒假的时候就做了,现在有机会发出来了。(〃'▽'〃)题目思路参考了大佬斜行查找的思路,为了...
前言作为一只有自知之明的菜鸟,为了对抗自己的懒癌,决定以每天至少写一道题并发布来督促自己。。(老头环实在...