摘要:
一、题目 Description Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point loc 阅读全文
摘要:
一、算法说明 数据结构中经常需要用到各种排序算法,故参考网上代码,将九个排序算法整合在一起,以便日后使用。算法运行时,可以选择所要采用的排序算法,并会输出每一趟的排序过程,更利于对排序算法的理解。 二、运行截图 三、代码 include include include define MAX_SIZE 阅读全文
摘要:
一、题目 Description Farmer John is assigning some of his N (1 include define MAX_N 25005 using namespace std; typedef pair P; int N, T; int cnt; P a[MAX_ 阅读全文
摘要:
一、题目 Description The cows play the child's game of hopscotch in a non traditional way. Instead of a linear set of numbered boxes into which to hop, th 阅读全文
摘要:
一、题目 Description FJ and his cows enjoy playing a mental game. They write down the numbers from 1 to N (1 include using namespace std; int N, sum; int 阅读全文
摘要:
一、题目 Description Given a number of distinct decimal digits, you can form one integer by choosing a non empty subset of these digits and writing them i 阅读全文
摘要:
一、题目 Description Given a number of distinct decimal digits, you can form one integer by choosing a non empty subset of these digits and writing them i 阅读全文
摘要:
一、题目 Description Bessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash into earth and destroy anything 阅读全文
摘要:
一、题目 Description On Planet MM 21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The 阅读全文
摘要:
一、题目 Description Like everyone else, cows like to stand close to their friends when queuing for feed. FJ has N (2 include include define MAX_N 10005 d 阅读全文