02 2020 档案

摘要:#include<iostream>using namespace std;int main(void) { int m,n,x,y=0,i; while(cin>>m>>n) { for(i=m; i<=n; i++) { if(i%2==0) x+=i*i; else y=y+i*i*i; } 阅读全文
posted @ 2020-02-19 11:28 heroin1 阅读(141) 评论(0) 推荐(0)
摘要:#include<iostream>using namespace std;int main(void) { int x,y,z,i,day=0; char m,n; int flag=0; int a[12]= {31,28,31,30,31,30,31,31,30,31,30,31}; int 阅读全文
posted @ 2020-02-19 11:14 heroin1 阅读(82) 评论(0) 推荐(0)
摘要:#include <stdio.h>int main(){ int t; while(scanf("%d",&t)!=EOF) { if(t>=0&&t<=100) { t=t/10; switch(t) { case 10: case 9: printf("A\n"); break; case 8 阅读全文
posted @ 2020-02-19 10:10 heroin1 阅读(186) 评论(0) 推荐(0)
摘要:#include <iostream>#include<iomanip>using namespace std;int main(void){ double a; while(cin>>a) { if(a<0) a=-a; cout<<fixed<<setprecision(2); cout<<a< 阅读全文
posted @ 2020-02-16 13:56 heroin1 阅读(100) 评论(0) 推荐(0)
摘要:#include <iostream>#define PI 3.1415927#include<iomanip>using namespace std;class ball{ public: double setV(double R) { double V=4.0/3*PI*R*R*R; retur 阅读全文
posted @ 2020-02-16 13:51 heroin1 阅读(156) 评论(0) 推荐(0)
摘要:#include <iostream>using namespace std;int main(void){ char a, b, c,d; cin >> a >> b >> c; if (a > b) { d = a; a = b; b = d; } if (a> c) { d = a; a = 阅读全文
posted @ 2020-02-16 13:37 heroin1 阅读(132) 评论(0) 推荐(0)