随笔分类 - 搜索-二分
摘要:题目链接:http://codeforces.com/problemset/problem/1288/D D. Minimax Problem time limit per test 5 seconds memory limit per test 512 megabytes input standa
阅读全文
摘要:题目链接:http://codeforces.com/problemset/problem/672/D D. Robin Hood time limit per test 1 second memory limit per test 256 megabytes input standard inpu
阅读全文
摘要:http://poj.org/problem?id=2010 Moo University - Financial Aid Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 12189 Accepted: 3609 Descript
阅读全文
摘要:题目链接:http://poj.org/problem?id=3579 Median Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11805 Accepted: 4164 Description Given N numbers
阅读全文
摘要:题目链接:http://poj.org/problem?id=2976 Dropping tests Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 20830 Accepted: 7052 Description In a ce
阅读全文
摘要:题目链接:http://poj.org/problem?id=3258 River Hopscotch Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 22092 Accepted: 9138 Description Every
阅读全文
摘要:恢复内容开始 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2962 Trucking Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
阅读全文
摘要:题目链接:http://codeforces.com/problemset/problem/589/F A gourmet came into the banquet hall, where the cooks suggested n dishes for guests. The gourmet k
阅读全文
摘要:题目链接:https://vjudge.net/contest/241341#problem/I 题目大意:输入t,t组样例,输入n,m,有n个圆槽,m个硬币,接下来m行代表每个硬币所在的位子,要求你移动硬币使得相邻的硬币距离相等,输出最小的最大移动步数(这里所指的是 一个硬币最大移动的步数) 个人
阅读全文
摘要:二分搜索,通过不断缩小解可能存在的范围,从而求得最优解的方法 题目链接:https://vjudge.net/contest/236677#problem/G There are K hours left before Agent Mahone leaves Amman! Hammouri does
阅读全文
摘要:https://vjudge.net/contest/231312#status/1751151850/D/0/ 第一道函数求值问题,这一道是单调函数求零点问题,用二分法 在这里学到了1,怎么输入e^x次方,用exp()函数,2、定义一个允许的误差 注意 fabs()主要求浮点型的绝对值,abs()
阅读全文

浙公网安备 33010602011771号