上一页 1 ··· 5 6 7 8 9
摘要: 09:判断能否被3,5,7整除 09:判断能否被3,5,7整除 总时间限制: 1000ms 内存限制: 65536kB描述 给定一个整数,判断它能否被3,5,7整除,并输出以下信息:1、能同时被3,5,7整除(直接输出3 5 7,每个数中间一个空格);2、只能被其中两个数整除(输出两个数,小的在前, 阅读全文
posted @ 2017-04-14 21:14 快乐永恒 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 暴力出奇迹,学长诚不欺我。 PID221 / 烦人的幻灯片 2017-04-14 19:47:08 运行耗时:30 ms 运行内存:12292 KB 查看最后一次评测记录 2017-04-14 19:47:08 运行耗时:30 ms 运行内存:12292 KB 查看最后一次评测记录 2017-04- 阅读全文
posted @ 2017-04-14 21:10 快乐永恒 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 最短网络Agri-Net 【问题描述】 农民约翰被选为他们镇的镇长!他其中一个竞选承诺就是在镇上建立起互联网,并连接到所有的农场。当然,他需要你的帮助。约翰已经给他的农场安排了一条高速的网络线路,他想把这条线路共享给其他农场。为了用最小的消费,他想铺设最短的光纤去连接所有的农场。你将得到一份各农场之 阅读全文
posted @ 2017-04-13 19:27 快乐永恒 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 洛谷的网站编排对题目粘贴不友好,所以没题目 链接在这:https://www.luogu.org/problem/show?pid=3367 阅读全文
posted @ 2017-04-12 21:59 快乐永恒 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 5972 格子游戏 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 5972 格子游戏 5972 格子游戏 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Go 阅读全文
posted @ 2017-04-12 21:33 快乐永恒 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 2597 团伙 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 题解 2597 团伙 2597 团伙 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 阅读全文
posted @ 2017-04-12 21:17 快乐永恒 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<cstdio>#include<cmath>using namespace std;int main(){ int flag=0,a,b,tot=0; scanf("%d%d",&a,&b); if(a>b)swap(a,b); for(int 阅读全文
posted @ 2017-03-23 20:33 快乐永恒 阅读(605) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<cstdio>#include<cmath>using namespace std;int a[2];int main(){ int p,b=0,flag=1; scanf("%d",&p); for(int i=2;i<=p/2;i++) { 阅读全文
posted @ 2017-03-23 20:32 快乐永恒 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 质因数分解 已知正整数 n是两个不同的质数的乘积,试求出较大的那个质数 。 ```cpp #include<iostream>#include<cstdio>#include<cmath>using namespace std;int a[2];int main(){ int p,b=0; scan 阅读全文
posted @ 2017-03-23 20:31 快乐永恒 阅读(8290) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<cstdio>using namespace std;int main(){ int i=2,n; scanf("%d",&n); printf("%d=",n); if(n<=3){ printf("%d",n); return 0; } wh 阅读全文
posted @ 2017-03-23 20:29 快乐永恒 阅读(604) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9