摘要: #include <iostream> using namespace std; int main() { int result[100005]={0}; int n,r,count=0; cin>>n; for(int i=1;i<=n;i++) { r=i/2+i/3+i/5; if(resul 阅读全文
posted @ 2020-02-06 11:08 QRain 阅读(96) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main() { int a,b,c,d,w=0; cin>>a>>b; c=a*b; if(c==0) { cout<<"0"; return 0; } do { d=c%10; if((w==0&&d!=0 阅读全文
posted @ 2020-02-06 11:00 QRain 阅读(129) 评论(0) 推荐(0)
摘要: #include <math.h> #include <string.h> #include <iostream> using namespace std; bool isPrime(long int num) { if(num==0||num==1) return false; for(int i 阅读全文
posted @ 2020-02-06 10:04 QRain 阅读(131) 评论(0) 推荐(0)