Cccccccccccccccccccccccc
Cccccccccccccccccccccccc
全部文章
ACM
C++学习记录(30)
Golang(4)
JAVA学习记录(9)
Juc(2)
JVM(1)
Python(2)
Python项目测试(1)
中间件(1)
乱七八糟(4)
安卓学习记录(1)
机器学习(2)
用java写算法!(4)
归档
标签
去牛客网
登录
/
注册
。
人生最后悔的事情就是 我本可以。
全部文章
/ ACM
(共14篇)
day-7
来自专栏
今天做这道!!7.两数之和 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素不能使用两遍。 示例: 给定 nums = [2, 7, 11, 15], target...
2020-06-14
0
697
动态规划法
动态规划法 一、动态规划法的设计思想 动态规划是一种解决多阶段决策问题的优化方法,把多阶段过程转化为一系列单阶段问题,利用各阶段之间的关系,逐个求解。 1、数塔问题:多阶段决策问题 从数塔的顶层出发,在每个节点都可以选择向左走或者向右走,一直走到最底层.要求找出一条路径,是的路径上的数值和最...
2020-04-14
1
574
set up cf 190802 Subsegments
B. Subsegments#set进阶 Programmer Sasha has recently begun to study data structures. His coach Stas told him to solve the problem of finding a minimum ...
2019-08-07
0
453
ACM8-6-cf-哈理工-f题
F. Vanya and Label While walking down the street Vanya saw a label "Hide&Seek". Because he is a programmer, he used & as a bitw...
2019-08-06
0
625
(D. Candies!)前缀和运算。
D - Candies! Consider a sequence of digits of length [a1,a2,…,a]. We perform the following operation with it: replace pairs (a2i+1,a2i+2) with ...
2019-07-25
0
511
算法测试2019/5/5(深度搜索)
深度搜索:Oil Deposits GeoSurvComp地质调查公司负责探测地下石油储藏。 GeoSurvComp现在在一块矩形区域探测石油,并把这个大区域分成了很多小块。他们通过专业设备,来分析每个小块中是否蕴藏石油。如果这些蕴藏石油的小方格相邻,那么他们被认为是同一油藏的一部分。在这块矩形区...
2019-05-05
0
631
B - Maximal Continuous Rest
B - Maximal Continuous Rest Each day in Berland consists of n hours. Polycarp likes time management. That's why he has a fixed schedule for each ...
2019-04-17
0
658
A - Serval and Bus
A - Serval and Bus It is raining heavily. But this is the first day for Serval, who just became 3 years old, to go to the kindergarten. Unfortunately...
2019-04-17
0
751
C - 不要62
C - 不要62 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。 杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。 不吉利的数字为所有含有4或62的号码。例如: 62315 ...
2019-04-14
0
635
A - Game 23
A - Game 23 Polycarp plays "Game 23". Initially he has a number n and his goal is to transform it to m. In one move, he can multiply n by 2 ...
2019-04-14
0
576
首页
上一页
1
2
下一页
末页