2015年10月18日

九度OJ 1041:Simple Sorting(简单排序) (排序)

摘要: 时间限制:1 秒内存限制:32 兆特殊判题:否提交:4502解决:1680题目描述:You are given an unsorted array of integer numbers. Your task is to sort this array and kill possible duplic... 阅读全文

posted @ 2015-10-18 17:58 梁山伯 阅读(209) 评论(0) 推荐(0) 编辑

九度OJ 1040:Prime Number(质数) (递归)

摘要: 时间限制:1 秒内存限制:32 兆特殊判题:否提交:5278解决:2180题目描述:Output the k-th prime number.输入:k≤10000输出:The k-th prime number.样例输入:37样例输出:517来源:2008年上海交通大学计算机研究生机试真题思路:求质... 阅读全文

posted @ 2015-10-18 17:14 梁山伯 阅读(233) 评论(0) 推荐(0) 编辑

九度OJ 1039:Zero-complexity Transposition(逆置) (基础题)

摘要: 时间限制:1 秒内存限制:32 兆特殊判题:否提交:3093解决:1255题目描述:You are given a sequence of integer numbers. Zero-complexity transposition of the sequence is the reverse of... 阅读全文

posted @ 2015-10-18 17:12 梁山伯 阅读(265) 评论(0) 推荐(0) 编辑

九度OJ 1038:Sum of Factorials(阶乘的和) (DP、递归)

摘要: 时间限制:1 秒内存限制:32 兆特殊判题:否提交:1845解决:780题目描述: John von Neumann, b. Dec. 28, 1903, d. Feb. 8, 1957, was a Hungarian-American mathematician who made importa... 阅读全文

posted @ 2015-10-18 17:02 梁山伯 阅读(301) 评论(0) 推荐(0) 编辑

九度OJ 1037:Powerful Calculator(强大的计算器) (大整数运算)

摘要: 时间限制:1 秒内存限制:32 兆特殊判题:否提交:1821解决:528题目描述: Today, facing the rapid development of business, SJTU recognizes that more powerful calculator should be stu... 阅读全文

posted @ 2015-10-18 16:54 梁山伯 阅读(349) 评论(0) 推荐(0) 编辑

九度OJ 1036:Old Bill (老比尔) (基础题)

摘要: 时间限制:1 秒内存限制:32 兆特殊判题:否提交:2691解决:1432题目描述: Among grandfather's papers a bill was found. 72 turkeys $_679_ The first and the last digits of the number ... 阅读全文

posted @ 2015-10-18 16:51 梁山伯 阅读(376) 评论(0) 推荐(0) 编辑

九度OJ 1035:找出直系亲属 (二叉树、递归)

摘要: 时间限制:1 秒内存限制:32 兆特殊判题:否提交:2380解决:934题目描述: 如果A,B是C的父母亲,则A,B是C的parent,C是A,B的child,如果A,B是C的(外)祖父,祖母,则A,B是C的grandparent,C是A,B的grandchild,如果A,B是C的(外)曾祖父,曾祖... 阅读全文

posted @ 2015-10-18 16:46 梁山伯 阅读(258) 评论(0) 推荐(0) 编辑

九度OJ 1034:寻找大富翁 (排序)

摘要: 时间限制:1 秒内存限制:32 兆特殊判题:否提交:5925解决:2375题目描述: 浙江桐乡乌镇共有n个人,请找出该镇上的前m个大富翁.输入: 输入包含多组测试用例. 每个用例首先包含2个整数n(0#include int cmp(const void *a, const void *b){ ... 阅读全文

posted @ 2015-10-18 16:45 梁山伯 阅读(330) 评论(0) 推荐(0) 编辑

九度OJ 1033:继续xxx定律 (基础题)

摘要: 时间限制:1 秒内存限制:32 兆特殊判题:否提交:4987解决:1201题目描述: 当n为3时,我们在验证xxx定律的过程中会得到一个序列,3,5,8,4,2,1,将3称为关键数,5,8,4,2称为覆盖数。现在输入n个数字a[i],根据关键数与覆盖数的理论,我们只需要验证其中部分数就可以确定所有数... 阅读全文

posted @ 2015-10-18 16:41 梁山伯 阅读(197) 评论(0) 推荐(0) 编辑

九度OJ 1032:ZOJ (基础题)

摘要: 时间限制:1 秒内存限制:32 兆特殊判题:否提交:4569解决:2561题目描述:读入一个字符串,字符串中包含ZOJ三个字符,个数不一定相等,按ZOJ的顺序输出,当某个字符用完时,剩下的仍然按照ZOJ的顺序输出。输入:题目包含多组用例,每组用例占一行,包含ZOJ三个字符,当输入“E”时表示输入结束... 阅读全文

posted @ 2015-10-18 16:40 梁山伯 阅读(455) 评论(0) 推荐(0) 编辑

导航