会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
友人-A
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
33
下一页
2019年2月5日
菜鸡的2018年度总结
摘要: 公元201820182018年已经正式过去了。过去的一年,发生了很多事情,也经历了很多,得到了很多。在这里写一下总结流水账,并为201920192019定一些小目标吧~四月一日...
阅读全文
posted @ 2019-02-05 21:17 友人-A
阅读(110)
评论(0)
推荐(0)
2019年2月3日
洛谷1052——过河(DP+状态压缩)
摘要: 题目描述在河上有一座独木桥,一只青蛙想沿着独木桥从河的一侧跳到另一侧。在桥上有一些石子,青蛙很讨厌踩在这些石子上。由于桥的长度和青蛙一次跳过的距离都是正整数,我们可以把独木桥上...
阅读全文
posted @ 2019-02-03 19:59 友人-A
阅读(209)
评论(0)
推荐(0)
mod4最优路径问题(转载)
摘要: 原文链接:https://blog.csdn.net/ACdreamers/article/details/18501855mod4最优路径问题如下图: 从1到4找出一条路径,要求路径的总长度mod4的余数最小。分析:一条从1到4的最优路径,在它走到2或3时mod4的余数不...
阅读全文
posted @ 2019-02-03 11:01 友人-A
阅读(321)
评论(0)
推荐(0)
2019年2月1日
POJ 3126:Prime Path(素数+BFS)
摘要: The ministers of the cabinet were quite upset by the message from the Chief of Security ...
阅读全文
posted @ 2019-02-01 13:15 友人-A
阅读(176)
评论(0)
推荐(0)
2019年1月21日
NYOJ-15:括号匹配(二)
摘要: 内存限制:64MB 时间限制:1000ms 特判: No通过数:54 提交数:158 难度:6题目描述:给你一个字符串,里面只包含"(",")","[","]"四种符号,请问你需要至少添加多少个括号才能使这些括号匹配起来。如:[]是匹配的([])[]是匹配的...
阅读全文
posted @ 2019-01-21 16:36 友人-A
阅读(201)
评论(0)
推荐(0)
Codeforces 1105C: Ayoub and Lost Array(递推)
摘要: time limit per test: 1 secondmemory limit per test: 256 megabytesinput: standard inputoutput: standard outputAyoub had an array a...
阅读全文
posted @ 2019-01-21 11:43 友人-A
阅读(311)
评论(0)
推荐(0)
Codeforces 1105B:Zuhair and Strings(字符串水题)
摘要: time limit per test: 1 secondmemory limit per test: 256 megabytesinput: standard inputoutput: standard outputGiven a string sss o...
阅读全文
posted @ 2019-01-21 11:28 友人-A
阅读(248)
评论(0)
推荐(0)
2019年1月7日
湖南大学第十四届ACM程序设计新生杯(重现赛)I:II play with GG(博弈论||DP)
摘要: 链接:https://ac.nowcoder.com/acm/contest/338/I来源:牛客网题目描述IG won the S championship and many people are excited, ii and gg are no exc...
阅读全文
posted @ 2019-01-07 10:42 友人-A
阅读(345)
评论(0)
推荐(0)
2019年1月3日
HDU 2176:取(m堆)石子游戏(Nim博弈)
摘要: 取(m堆)石子游戏Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4610 Accepted...
阅读全文
posted @ 2019-01-03 17:41 友人-A
阅读(241)
评论(0)
推荐(0)
2019年1月1日
利用位运算进行a+b的计算(Java&&Python)
摘要: 题目链接需要用到的位运算操作:异或(^)、与(&)、右移(<<)异或运算:又称不进位加法,a^b得到的结果为a与b相加,但是需要进位的地方不进位得到的结果与运算:找出来a和b中均为1的位置,利用右移操作来实现进位a+ba+ba+b可以转换成位运算:a+b=(...
阅读全文
posted @ 2019-01-01 17:51 友人-A
阅读(1013)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
33
下一页
公告