THE FORTH DAY
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了THE FORTH DAY相关的知识,希望对你有一定的参考价值。

#include<iostream> #include<cstdio> using namespace std; int main() { freopen("task.in","r",stdin); freopen("task.out","w",stdout); int m,n; cin>>m>>n; if(m+n<10) cout<<"water"<<endl; if((m+n>=10)&&(m>n)) cout<<"tree"<<endl; if((m+n>=10)&&(m<=n)) cout<<"tea"<<endl; return 0; }

#include<iostream> #include<iomanip> #include<cmath> #include<cstdio> using namespace std; int main() { freopen("distance.in","r",stdin); freopen("distance.out","w",stdout); int x1,x2,y1,y2; cin>>x1>>y1>>x2>>y2; double m,n,a,b; m=sqrt(double((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))); cout<<setiosflags(ios::fixed)<<setprecision(2); cout<<m<<endl; if(x1<x2) a=x2-x1; else a=x1-x2; if(y1<y2) b=y2-y1; else b=y1-y2; n=a+b; cout<<n<<endl; return 0; }

#include<iostream> #include<cstdio> using namespace std; int main() { freopen("snail.in","r",stdin); freopen("snail.out","w",stdout); int D,a,b,n=0; cin>>D>>a>>b; if((a<=b)&&(D>a)) cout<<"bye bye"<<endl; else { for(;;) { n++; D=D-a; if(D<=a) break; D=D+b; } cout<<n<<endl; } return 0; }

#include<iostream> #include<cstdio> using namespace std; int main() { freopen("fivesort.in","r",stdin); freopen("fivesort.out","w",stdout); int a,b,c,d,e; cin>>a>>b>>c>>d>>e; for(int i=1;i<=1000;i++) { if(i==a) cout<<a<<‘ ‘; if(i==b) cout<<b<<‘ ‘; if(i==c) cout<<c<<‘ ‘; if(i==d) cout<<d<<‘ ‘; if(i==e) cout<<e<<‘ ‘; } return 0; }
今天是我学习编程的第四天~~也是我的第一次考试。
今天的考试给了我一个沉重的打击,我感觉好失望,不过我也决定了要好好学,好好练,一定要把编程学好。
今天的考试一共四道题,前三道题我都有思路,都能拿到分,但就是拿不了满分,总结一下是因为我缺少仔细读题和全面思考,这是一个非常坏的习惯和很大的缺点,我今后必须改正。第四道我可能缺乏认真思考的能力,也是我在思考问题是思路的问题,我必须提升自己的独立思考能力,以后做题不能太依赖老师,不能一直找老师请教,我得学会独立思考。
今天的考试我考的不理想,但它给我了一个我今后学习的方式和动力,我相信我的第二次考试一定可以成功的。加油!臧子杰。
This is my forth day and first test.
以上是关于THE FORTH DAY的主要内容,如果未能解决你的问题,请参考以下文章
环境初始化 Build and Install the Apache Thrift IDL Compiler Install the Platform Development Tools(代码片段
maven web项目的web.xml报错The markup in the document following the root element must be well-formed.(代码片段
What's the difference between @Component, @Repository & @Service annotations in Spring?(代码片段