基础算法--思维
文章平均质量分 66
红点雷龙XL
这个作者很懒,什么都没留下…
展开
-
「一本通 1.1 练习 5」钓鱼(贪心)
在一条水平路边,有 nn 个钓鱼湖,从左到右编号为 1,2,…,n1,2,…,n。佳佳有 HH 个小时的空余时间,他希望利用这个时间钓到更多的鱼。原创 2022-06-04 18:02:28 · 378 阅读 · 0 评论 -
「一本通 1.1 例 3」Watering Grass(贪心)
「一本通 1.1 例 3」Watering Grass(贪心)原创 2022-05-30 21:25:40 · 184 阅读 · 0 评论 -
【HDU】3216A Cubic number and A Cubic Number(数学公式+暴力)
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 2765 Accepted Submission(s): 1121 Problem Description A cubic number is the r...原创 2019-02-15 21:42:27 · 208 阅读 · 0 评论 -
【HDU】3003Pupu(让我想起了离散课上最小项和真值表)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2177 Accepted Submission(s): 882 Problem Description There is an island calle...原创 2019-02-15 22:07:27 · 232 阅读 · 0 评论 -
【POJ】2566Bound Found(尺取法)
Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 6812 Accepted: 2202 Special Judge DescriptionSignals of most probably extra-terrestrial origin have been receiv...原创 2019-02-17 19:59:08 · 169 阅读 · 0 评论 -
【HDU】1937Finding Seats(枚举前缀和,尺取)
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 911 Accepted Submission(s): 304 Problem Description A group of K friends is g...原创 2019-02-17 20:21:56 · 192 阅读 · 0 评论 -
【Light OJ】 1294 - Positive Negative Sign(找公式)
Given two integers: n and m and n is divisible by 2m, you have to write down the first n natural numbers in the following form. At first take first m integers and make their sign negative, then take n...原创 2019-02-13 20:26:14 · 223 阅读 · 0 评论 -
【Light OJ 】--1275(一元二次函数的驻点)
A group of N Internet Service Provider companies (ISPs) use a private communication channel that has a maximum capacity of C traffic units per second. Each company transfers T traffic units per second...原创 2019-02-13 20:40:28 · 392 阅读 · 0 评论 -
2019牛客暑期多校训练营(第九场)D.Knapsack Cryptosystem
链接:https://ac.nowcoder.com/acm/contest/889/D来源:牛客网题目描述Amy asks Mr. B problem D. Please help Mr. B to solve the following problem.Amy wants to crack Merkle–Hellman knapsack cryptosystem. P...原创 2019-08-16 09:23:27 · 197 阅读 · 0 评论