摘要: A题 Average F题 Score H题 Legal Identifier c++ //1.判断是不是那32个 2.首字母是不是数字 3.有没有出现不是数字下划线字符的解 include using namespace std; char str[35][10]={"auto","break", 阅读全文
posted @ 2017-06-04 16:43 adfae 阅读(788) 评论(0) 推荐(0) 编辑
摘要: A题 F题 K题 c++ //这题可以看出是道DFS的模板题,但是记录路径是个难点。可以在更新时如果大于就从数组下标为0开始更新,否则就从下标i n开始更新。 include using namespace std; int g[10][10], ans, T, path[111], p[10], 阅读全文
posted @ 2017-06-01 22:33 adfae 阅读(2329) 评论(0) 推荐(1) 编辑
摘要: Permutation Description 置换 题目描述 给一个置换P(x⃗ ),Pn(x⃗ )=x⃗ ,求最小的n。比如置换P=(12233441), P(x1,x2,x3,x4)P2(x1,x2,x3,x4)P3(x1,x2,x3,x4)P4(x1,x2,x3,x4)====(x4,x1, 阅读全文
posted @ 2017-03-23 21:56 adfae 阅读(4115) 评论(0) 推荐(0) 编辑
摘要: 数据库第一次作业 3.1 使用大学模式,用SQL写出如下查询。 a.找出Comp.Sci系开设的具有三个学分的课程名称。 b. 找出名叫Einstein的教师所教的所有学生的标识,保证结果中没有重复。 c. 找出教师的最高工资 d. 找出工资最高的所有教师 e.找出2009年秋季开设的每个课程段的选 阅读全文
posted @ 2017-03-21 15:24 adfae 阅读(10399) 评论(0) 推荐(1) 编辑
摘要: 数据库第一次作业 3.1 使用大学模式,用SQL写出如下查询。 a.找出Comp.Sci系开设的具有三个学分的课程名称。 ~~~sql select title from course where dept_name = 'Comp. Sci.' and course.credits = 3; ~~ 阅读全文
posted @ 2017-03-02 23:50 adfae 阅读(1891) 评论(0) 推荐(0) 编辑
摘要: 初期:一.基本算法:(1)枚举. (poj1753,poj2965)(2)贪心(poj1328,poj2109,poj2586)(3)递归和分治法.(4)递推.(5)构造法.(poj3295)(6)模拟法.(poj1068,poj2632,poj1573,poj2993,poj29... 阅读全文
posted @ 2016-07-27 15:50 adfae 阅读(156) 评论(0) 推荐(0) 编辑
摘要: ![](http://images2015.cnblogs.com/blog/850023/201607/850023-20160727142929934-1349299887.png) ![](http://images2015.cnblogs.com/blog/850023/201607/850023-20160727142946669-1660212410.png) ![](http://i... 阅读全文
posted @ 2016-07-27 14:31 adfae 阅读(240) 评论(0) 推荐(0) 编辑
摘要: ![](http://images2015.cnblogs.com/blog/850023/201607/850023-20160727112817388-2012340187.png) 阅读全文
posted @ 2016-07-27 11:30 adfae 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 首先来发模板 poj 1287 C++ include include include include using namespace std; const int maxn=1010; const int INF=0x3f3f3f3f; struct Node{ double x,y,h; }po 阅读全文
posted @ 2016-07-26 19:47 adfae 阅读(214) 评论(0) 推荐(0) 编辑
摘要: ===================以下是最小生成树+并查集====================================== 【HDU】 1198 Farm Irrigation 并查集★(好题) 1598 find the most comfortable road... 阅读全文
posted @ 2016-07-25 14:36 adfae 阅读(234) 评论(0) 推荐(0) 编辑