上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 鸡兔同笼 时间限制:3000 ms | 内存限制:65535 KB 难度:1 鸡兔同笼 时间限制:3000 ms | 内存限制:65535 KB 难度:1 #include <iostream>#include <stdio.h>using namespace std;/* run this pro 阅读全文
posted @ 2017-10-23 22:50 P_langen 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 6174问题 时间限制:1000 ms | 内存限制:65535 KB 难度:2 6174问题 时间限制:1000 ms | 内存限制:65535 KB 难度:2 假设你有一个各位数字互不相同的四位数,把所有的数字从大到小排序后得到a,从小到大后得到b,然后用a-b替换原来这个数,并且继续操作。例如 阅读全文
posted @ 2017-10-22 15:45 P_langen 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 时间限制:1秒 空间限制:32768K 热度指数:9035 算法知识视频讲解 题目描述 数列的第一项为n,以后各项为前一项的平方根,求数列的前m项的和。 输入描述: 输入数据有多组,每组占一行,由两个整数n(n < 10000)和m(m < 1000)组成,n和m的含义如前所述。 输出描述: 对于每 阅读全文
posted @ 2017-10-21 15:55 P_langen 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 公约数和公倍数 时间限制:1000 ms | 内存限制:65535 KB 难度:1 公约数和公倍数 时间限制:1000 ms | 内存限制:65535 KB 难度:1 #include <stdio.h>#include <stdlib.h>#include <math.h> int main(in 阅读全文
posted @ 2017-10-21 15:22 P_langen 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 韩信点兵 时间限制:3000 ms | 内存限制:65535 KB 难度:1 韩信点兵 时间限制:3000 ms | 内存限制:65535 KB 难度:1 #include <stdio.h>#include <stdlib.h>#include <math.h> int main(int argc 阅读全文
posted @ 2017-10-21 14:54 P_langen 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目描述 春天是鲜花的季节,水仙花就是其中最迷人的代表,数学上有个水仙花数,他是这样定义的: “水仙花数”是指一个三位数,它的各位数字的立方和等于其本身,比如:153=1^3+5^3+3^3。 现在要求输出所有在m和n范围内的水仙花数。 输入描述: 输入数据有多组,每组占一行,包括两个整数m和n(1 阅读全文
posted @ 2017-10-20 22:28 P_langen 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 三个数从小到大排序 时间限制:3000 ms | 内存限制:65535 KB 难度:0 三个数从小到大排序 时间限制:3000 ms | 内存限制:65535 KB 难度:0 现在要写一个程序,实现给三个数排序的功能 #include <stdio.h>#include <stdlib.h> int 阅读全文
posted @ 2017-10-19 22:08 P_langen 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 5个数求最值 时间限制:1000 ms | 内存限制:65535 KB 难度:1 5个数求最值 时间限制:1000 ms | 内存限制:65535 KB 难度:1 #include <stdio.h>#include <stdlib.h> int main(int argc, char *argv[ 阅读全文
posted @ 2017-10-19 21:43 P_langen 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 素数距离问题 时间限制:3000 ms | 内存限制:65535 KB 难度:2 素数距离问题 时间限制:3000 ms | 内存限制:65535 KB 难度:2 #include <stdio.h>#include <stdlib.h> int main(int argc, char *argv[ 阅读全文
posted @ 2017-10-18 22:58 P_langen 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 描述现在给你N个数(0<N<1000),现在要求你写出一个程序,找出这N个数中的所有素数,并求和。 #include <stdio.h>#include <stdlib.h> int main(int argc, char *argv[]) { int m,i; int n,j; int k; in 阅读全文
posted @ 2017-10-17 19:37 P_langen 阅读(149) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页