摘要: 题 题意 n个表示abc三个字符的点,所有a和b是相连的,所有b和c是相连的,所有相同的是相连的,现在给你n个点和他们之间的m条边,判断是否存在这样的字符串,存在则给出一个符合条件的。 分析 我的做法是找出所有的b,因为b是只和自己本身没有连接,所以有n-1个连线,然后找出第一个不是b的,然后所有和 阅读全文
posted @ 2016-02-12 02:01 水郁 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 题 Today, Wet Shark is given n integers. Using any of these integers no more than once, Wet Shark wants to get maximum possible even (divisible by 2) s 阅读全文
posted @ 2016-02-12 01:44 水郁 阅读(741) 评论(0) 推荐(0) 编辑
摘要: 题 There are 2N white balls on a table in two rows, making a nice 2-by-N rectangle. Jon has a big paint bucketfull of black paint. (Don’t ask why.) He 阅读全文
posted @ 2016-02-12 01:39 水郁 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 题 There are n sharks who grow flowers for Wet Shark. They are all sitting around the table, such that sharks i andi + 1 are neighbours for all i from  阅读全文
posted @ 2016-02-12 01:24 水郁 阅读(562) 评论(0) 推荐(1) 编辑
摘要: 题 You are given array ai of length n. You may consecutively apply two operations to this array: remove some subsegment (continuous subsequence) of len 阅读全文
posted @ 2016-02-12 00:52 水郁 阅读(853) 评论(0) 推荐(2) 编辑
摘要: 题 Cat Noku has obtained a map of the night sky. On this map, he found a constellation with n stars numbered from 1to n. For each i, the i-th star is l 阅读全文
posted @ 2016-02-11 23:08 水郁 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 技能学习部分: 1.需要熟练掌握HTML标签以及CSS各个常用属性。 2.掌握CSS3 常用属性 3.掌握jquery的基本用法,对于JS基本逻辑语句需要熟练掌握 上文 【FE前端学习】第二阶段任务-提高 一、HTML标签 HTML 水平线<hr /> HTML 注释 内部样式表 外部样式表 内联样 阅读全文
posted @ 2016-02-07 14:18 水郁 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 题 Description Rhason Cheung had a simple problem, and asked Teacher Mai for help. But Teacher Mai thought this problem was too simple, sometimes naive 阅读全文
posted @ 2016-02-06 21:21 水郁 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 题 Description soda has a set $S$ with $n$ integers $\{1, 2, \dots, n\}$. A set is called key set if the sum of integers in the set is an even number. 阅读全文
posted @ 2016-02-06 19:42 水郁 阅读(576) 评论(0) 推荐(0) 编辑
摘要: gcd算法: 通过辗转相除求最大公约数 #include<stdio.h> int gcd(int a,int b){ return a%b==0?b:gcd(b,a%b); } int main(){ printf("%d",gcd(15,18)); return 0; } 扩展gcd算法: 对于 阅读全文
posted @ 2016-02-06 14:48 水郁 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 题 Description Give a time.(hh:mm:ss),you should answer the angle between any two of the minute.hour.second hand Notice that the answer must be not mor 阅读全文
posted @ 2016-02-06 01:23 水郁 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 题 Description 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一直朝 阅读全文
posted @ 2016-02-06 01:19 水郁 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 题 Description Lele now is thinking about a simple function f(x). If x < 10 f(x) = x. If x >= 10 f(x) = a0 * f(x-1) + a1 * f(x-2) + a2 * f(x-3) + …… + 阅读全文
posted @ 2016-02-06 01:06 水郁 阅读(258) 评论(0) 推荐(1) 编辑
摘要: Description Alice and Bob decide to play a funny game. At the beginning of the game they pick n(1 <= n <= 10 6) coins in a circle, as Figure 1 shows. 阅读全文
posted @ 2016-02-06 00:41 水郁 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 题 Description A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves t 阅读全文
posted @ 2016-02-06 00:25 水郁 阅读(339) 评论(0) 推荐(0) 编辑
……