03 2017 档案

摘要:#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 快乐永恒 阅读(620) 评论(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 快乐永恒 阅读(457) 评论(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 快乐永恒 阅读(8340) 评论(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 快乐永恒 阅读(613) 评论(0) 推荐(0)