上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 87 下一页
摘要: 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 丧心病狂工科女 阅读(268) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805051153825792 本题要求你实现一个天梯赛专属在线地图,队员输入自己学校所在地和赛场地点后,该地图应该推荐两条路线:一条是最快到达路线;一条是最短距离的路线。题目 阅读全文
posted @ 2019-03-26 13:22 丧心病狂工科女 阅读(271) 评论(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 丧心病狂工科女 阅读(183) 评论(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 丧心病狂工科女 阅读(118) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805057298481152 图着色问题是一个著名的NP完全问题。给定无向图G=(V,E),问可否用K种颜色为V中的每一个顶点分配一种颜色,使得不会有两个相邻顶点具有同一种颜 阅读全文
posted @ 2019-03-25 10:45 丧心病狂工科女 阅读(248) 评论(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 丧心病狂工科女 阅读(134) 评论(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 丧心病狂工科女 阅读(232) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805049870368768 将一系列给定数字顺序插入一个初始为空的二叉搜索树(定义为左子树键值大,右子树键值小),你需要判断最后的树是否一棵完全二叉树,并且给出其层序遍历的 阅读全文
posted @ 2019-03-21 22:25 丧心病狂工科女 阅读(179) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805055176163328 对于在中国大学MOOC(http://www.icourse163.org/ )学习“数据结构”课程的学生,想要获得一张合格证书,总评成绩必须达 阅读全文
posted @ 2019-03-19 00:31 丧心病狂工科女 阅读(400) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1848 Problem Description 任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的:F(1)=1;F(2)=2;F(n)=F(n-1)+F(n-2)(n 阅读全文
posted @ 2019-03-18 20:54 丧心病狂工科女 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 87 下一页