摘要: Description 输入一个三位自然数,然后把这个数的百位数与个位数对调,输出对调后的数 Input 输入一行,只有一个整数x(100<=x<=999)。 Output 输出只有一行,包括1个整数。 Sample Input 123 Sample Input 123 Sample Output 阅读全文
posted @ 2017-12-14 22:06 ixummer 阅读(4480) 评论(0) 推荐(0) 编辑
摘要: Problem Description The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at w 阅读全文
posted @ 2017-12-14 11:43 ixummer 阅读(342) 评论(0) 推荐(0) 编辑
摘要: Problem Description Have you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encirc 阅读全文
posted @ 2017-12-13 22:06 ixummer 阅读(280) 评论(0) 推荐(0) 编辑
摘要: Problem Description A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are 阅读全文
posted @ 2017-12-13 17:18 ixummer 阅读(639) 评论(0) 推荐(0) 编辑
摘要: Problem Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is gues 阅读全文
posted @ 2017-12-13 16:38 ixummer 阅读(197) 评论(0) 推荐(0) 编辑
摘要: Problem Description Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7 阅读全文
posted @ 2017-12-13 16:03 ixummer 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line 阅读全文
posted @ 2017-12-13 15:06 ixummer 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdio.h" 2 #include "stdlib.h" 3 4 #define MAXSIZE 100 5 typedef char TElemType; 6 typedef struct BiTNode { 7 TElemType data; 8 struct BiTNode *lchild; 9 st... 阅读全文
posted @ 2017-12-10 18:16 ixummer 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1 #include"stdio.h" 2 #include"stdlib.h" 3 #include"iostream" 4 5 typedef struct bstnode{ 6 int data; 7 struct bstnode *lchild; 8 struct bstnode *rchild; 9 }bstnod... 阅读全文
posted @ 2017-12-06 11:20 ixummer 阅读(2197) 评论(0) 推荐(0) 编辑
摘要: jsp内置对象对象是web容器创建的一组对象,不使用new关键词久可以使用的内置对象。 九大内置对象包括以下: out –JspWriter request –ServletRequest reponse –ServletResponse config –ServletConfig session 阅读全文
posted @ 2017-12-04 12:55 ixummer 阅读(268) 评论(0) 推荐(0) 编辑