上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 87 下一页
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805046946938880 给定一个全部由小写英文字母组成的字符串,允许你至多删掉其中 3 个字符,结果可能有多少种不同的字符串? 输入格式: 输入在一行中给出全部由小写英 阅读全文
posted @ 2019-03-26 22:56 _Zlrrr 阅读(250) 评论(0) 推荐(0)
摘要: A.Minimum’s Revenge There is a graph of n vertices which are indexed from 1 to n. For any pair of different vertices, the weight of the edge between t 阅读全文
posted @ 2019-03-26 19:59 _Zlrrr 阅读(275) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805051153825792 本题要求你实现一个天梯赛专属在线地图,队员输入自己学校所在地和赛场地点后,该地图应该推荐两条路线:一条是最快到达路线;一条是最短距离的路线。题目 阅读全文
posted @ 2019-03-26 13:22 _Zlrrr 阅读(284) 评论(0) 推荐(0)
摘要: http://poj.org/problem?id=2234 Description Here is a simple game. In this game, there are several piles of matches and two players. The two player pla 阅读全文
posted @ 2019-03-25 21:15 _Zlrrr 阅读(187) 评论(0) 推荐(0)
摘要: http://codeforces.com/contest/1095 A. Repeating Cipher #include <bits/stdc++.h> using namespace std; int N; string s; string ans = ""; int main() { sc 阅读全文
posted @ 2019-03-25 16:16 _Zlrrr 阅读(123) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805057298481152 图着色问题是一个著名的NP完全问题。给定无向图G=(V,E),问可否用K种颜色为V中的每一个顶点分配一种颜色,使得不会有两个相邻顶点具有同一种颜 阅读全文
posted @ 2019-03-25 10:45 _Zlrrr 阅读(263) 评论(0) 推荐(0)
摘要: https://ac.nowcoder.com/acm/contest/543#question A. 代码: #include <bits/stdc++.h> using namespace std; int N; vector<int> v; int main() { scanf("%d", & 阅读全文
posted @ 2019-03-24 20:57 _Zlrrr 阅读(142) 评论(0) 推荐(0)
摘要: https://vjudge.net/contest/289558#overview A - Frog Therearex frogs and y chicken in a garden. Kim found there are n heads and m legs in the garden. P 阅读全文
posted @ 2019-03-21 23:13 _Zlrrr 阅读(239) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805049870368768 将一系列给定数字顺序插入一个初始为空的二叉搜索树(定义为左子树键值大,右子树键值小),你需要判断最后的树是否一棵完全二叉树,并且给出其层序遍历的 阅读全文
posted @ 2019-03-21 22:25 _Zlrrr 阅读(184) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805055176163328 对于在中国大学MOOC(http://www.icourse163.org/ )学习“数据结构”课程的学生,想要获得一张合格证书,总评成绩必须达 阅读全文
posted @ 2019-03-19 00:31 _Zlrrr 阅读(409) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 87 下一页