- 博客(7)
- 收藏
- 关注
原创 二分:HDU2899,2199
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2899Problem DescriptionNow, here is a fuction:F(x) = 6x ^ 7 + 8x ^ 6 + 7x ^ 3 + 5x ^ 2 - y *x (0 <= x <=100)Can you find the minimum value when...
2019-12-19 18:35:02 139
原创 Codeforces 348A. Mafia(贪心/二分)
A. Mafia题目链接:https://codeforces.com/problemset/problem/348/AOne day n friends gathered together to play “Mafia”. During each round of the game some player must be the supervisor and other n - 1 peop...
2019-12-19 16:34:14 163
原创 Codeforces 1272(A,B,C)Round#605(Div.3)
A. Three Friends题目链接:https://codeforces.com/problemset/problem/1272/AThree friends are going to meet each other. Initially, the first friend stays at the position x=a, the second friend stays at the...
2019-12-13 01:25:54 291
原创 Codeforces 1265(A,B)Round#604(Div.2)
A. Beautiful String题目链接:https://codeforces.com/problemset/problem/1265/AA string is called beautiful if no two consecutive characters are equal. For example, “ababcb”, “a” and “abab” are beautiful s...
2019-12-11 18:56:15 349
原创 Codeforces 1260(A,B,C)Round#77(Rated for Div.2)
A.HeatingDescriptionSeveral days ago you bought a new house and now you are planning to start a renovation. Since winters in your region can be very cold you need to decide how to heat rooms in your...
2019-12-05 20:34:52 281
原创 Poj 3984 迷宫问题 (dfs & 回溯) (路径输出)
Description定义一个二维数组:int maze[5][5] = {0, 1, 0, 0, 0,0, 1, 0, 1, 0,0, 0, 0, 0, 0,0, 1, 1, 1, 0,0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。Input一个5 × ...
2019-12-05 19:51:55 344
原创 最短路:HDU2544
Problem Description在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?Input输入包括多组数据。每组数据第一行是两个整数N、M(N<=100,M<=10000),N表示成都的大街上有几个路口,标号为1的路...
2019-12-05 19:14:06 253
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人