摘要: 链接:codeforces.com/contest/8 A 原因:RE,fantasy 的字符串的长度可能大于原字符串。 B 题意:上下左右走,可能要避让障碍,问是否存在一个地图使得给定的路径为当前最短路径。 题型:构造,模拟 原因:map不熟,要判两个地方,一是不重复抵达,二是当前点除去前导点旁边 阅读全文
posted @ 2018-07-30 23:24 LLbinGG 阅读(171) 评论(0) 推荐(0) 编辑
摘要: C. Fly 链接:http://codeforces.com/group/1EzrFFyOc0/contest/1011/problem/C 题型:binary search 、math。 题意:总共有n个星球,飞船从地球起飞经过n-2个星球(在每个星球上做降落、起飞的动作)到达火星,在火星上同样 阅读全文
posted @ 2018-07-27 13:16 LLbinGG 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 链接:http://codeforces.com/contest/1003 A. Polycarp's Pockets 题型:模拟 题意:把初始集合拆分,要求相同的数不在同一个集合中,求出需要的集合个数。 原因:WA-3,<=又不小心写成<+... B. Binary String Construc 阅读全文
posted @ 2018-07-26 13:18 LLbinGG 阅读(146) 评论(0) 推荐(0) 编辑
摘要: C. Plus and Square Root 链接:codeforces.com/group/1EzrFFyOc0/contest/716/problem/C 题型:构造 题意:起始数 x 为 2,在当前位置 i 可重复加上 i,直到 x 为 (( i + 1 )* k )^ 2 ( k = 1, 阅读全文
posted @ 2018-07-26 12:33 LLbinGG 阅读(116) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/css1991cm/article/details/50987377 https://blog.csdn.net/cbs612537/article/details/8274512 阅读全文
posted @ 2018-07-19 23:12 LLbinGG 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 分解质因数 阅读全文
posted @ 2018-04-20 22:32 LLbinGG 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 摘自http://www.myexception.cn/cpp/1900041.html const int *p 为什么可以不初始化?c++ primer 5th P53 写道:const 对象一旦创建后其值就不能再改变,所以const对象必须初始化。 但在 P57 中练习2.28的第(e)题为什 阅读全文
posted @ 2018-03-26 17:29 LLbinGG 阅读(1581) 评论(0) 推荐(0) 编辑
摘要: 2018-03-16 http://codeforces.com/problemset/problem/697/C C. Lorenzo Von Matterhorn time limit per test 1 second memory limit per test 256 megabytes i 阅读全文
posted @ 2018-03-16 20:19 LLbinGG 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 2018-03-11 http://codeforces.com/contest/946/problem/D D. Timetable time limit per test 2 seconds time limit per test memory limit per test 256 megaby 阅读全文
posted @ 2018-03-11 17:09 LLbinGG 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 2018-03-03 http://codeforces.com/problemset/problem/937/B B. Vile Grasshoppers time limit per test 1 second time limit per test memory limit per test 阅读全文
posted @ 2018-03-03 15:16 LLbinGG 阅读(180) 评论(0) 推荐(0) 编辑