摘要: VF时间限制:1000 ms | 内存限制:65535 KB难度:2描述Vasya is the beginning mathematician. He decided to make an important contribution to the science and to become ... 阅读全文
posted @ 2016-11-26 16:56 xushukui 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 作业题时间限制:3000 ms | 内存限制:65535 KB难度:3描述小白同学这学期有一门课程叫做《数值计算方法》,这是一门有效使用数字计算机求数学问题近似解的方法与过程,以及由相关理论构成的学科……今天他们的Teacher S,给他们出了一道作业题。Teacher S给了他们很多的点,让他... 阅读全文
posted @ 2016-11-24 21:00 xushukui 阅读(125) 评论(0) 推荐(0) 编辑
摘要: //当m高达10的6次方以上且要查的数非常多的话的话,用二分查找不超时#include#include#include#includeusing namespace std;int n,m;int a[110];int lower_bound(int* A,int x,int y,int v)//求... 阅读全文
posted @ 2016-11-23 21:00 xushukui 阅读(159) 评论(0) 推荐(0) 编辑
摘要: //归并排序//#include//#include//#include//#include//using namespace std;////int n,m;//int a[10],b[10];////void merge_sort(int* A,int x,int y,int* T)//{// ... 阅读全文
posted @ 2016-11-23 20:05 xushukui 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 单调递增子序列(二)时间限制:1000 ms | 内存限制:65535 KB难度:4描述给定一整型数列{a1,a2...,an}(0#include#includeusing namespace std;int a[100002],b[100002];int erfen(int num,int ... 阅读全文
posted @ 2016-11-22 21:33 xushukui 阅读(107) 评论(0) 推荐(0) 编辑
摘要: KI的斐波那契Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 550 Solved: 208DescriptionKI十分喜欢美丽而优雅的斐波那契数列,最近他新认识了一种斐波那契字符串,定义如下f (0) = b, f (1) = a,f (2) = ... 阅读全文
posted @ 2016-11-22 18:41 xushukui 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Mr. Kitayuta's GiftTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 505ADescriptionMr. K... 阅读全文
posted @ 2016-11-22 15:12 xushukui 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 回文字符串时间限制:3000 ms | 内存限制:65535 KB难度:4描述所谓回文字符串,就是一个字符串,从左到右读和从右到左读是完全一样的,比如"aba"。当然,我们给你的问题不会再简单到判断一个字符串是不是回文字符串。现在要求你,给你一个字符串,可在任意位置添加字符,最少再添加几个字符,... 阅读全文
posted @ 2016-11-19 20:45 xushukui 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 所谓回文字符串,就是一个字符串,从左到右读和从右到左读是完全一样的,比如"aba"。题目:判断一个字符串是否为回文解法:递归递归的作用在于把问题的规模不断缩少,直到问题缩少到能简单地解决问:如何缩少问题规模?答:通过观察可以知道,一个回文字符串其中内部也是回文。所以,我们只需要以去掉两端的字符的形式... 阅读全文
posted @ 2016-11-19 20:15 xushukui 阅读(580) 评论(0) 推荐(0) 编辑
摘要: The Triangle时间限制:1000 ms | 内存限制:65535 KB难度:4描述73 88 1 02 7 4 44 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that calculates t... 阅读全文
posted @ 2016-11-19 18:18 xushukui 阅读(124) 评论(0) 推荐(0) 编辑