摘要: #include <math.h> #include <vector> #include <iostream> using namespace std; int main() { int n; cin>>n; vector <int> say(n+1); for(int i=1;i<=n;i++) 阅读全文
posted @ 2020-02-07 17:43 QRain 阅读(229) 评论(0) 推荐(0)
摘要: #include <math.h> #include <iostream> using namespace std; int main() { int m,x,y,a,b=0,tmp1,tmp2; double c,tmp3,tmp4; cin>>m>>x>>y; for(a=99;a>=10;a- 阅读全文
posted @ 2020-02-07 09:26 QRain 阅读(139) 评论(0) 推荐(0)
摘要: #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)
摘要: #include <string.h> #include <iostream> using namespace std; int main() { char a[1000005],b[1000005],c[127]={0}; fgets(a,1000005,stdin); fgets(b,10000 阅读全文
posted @ 2020-02-05 11:15 QRain 阅读(152) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main() { int n,m; int sale[1005]={0},s,w=0; cin>>n>>m; for(int i=1;i<=m;i++) { for(int j=1;j<=n;j++) { ci 阅读全文
posted @ 2020-02-05 11:04 QRain 阅读(119) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main() { int m,k,r,i; cin>>m; for(int j=0;j<m;j++) { cin>>k; for(i=1;i<10;i++) { r=i*k*k; if((k<10&&(r-k) 阅读全文
posted @ 2020-02-05 10:49 QRain 阅读(108) 评论(0) 推荐(0)
摘要: #include <math.h> #include <stdio.h> int main() { double r1,p1,r2,p2,g1,g2; scanf("%lf %lf %lf %lf",&r1,&p1,&r2,&p2); g1=r1*r2*cos(p1)*cos(p2)-r1*r2*s 阅读全文
posted @ 2020-02-05 10:11 QRain 阅读(142) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; #include <stdio.h> int main() { int n,tno,tsno,grade,max=0,max_i=1; int t_g[1005]={0}; scanf("%d",&n); for(in 阅读全文
posted @ 2020-02-03 12:05 QRain 阅读(128) 评论(0) 推荐(0)