Signed-off-by: sairate@sina.cn <weixiaoze@1.com>
This commit is contained in:
commit
5f87434c30
|
@ -0,0 +1,11 @@
|
||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
int nb= 880,dx= 500;
|
||||||
|
int zc= nb*2+dx*2;
|
||||||
|
int mj= nb*dx;
|
||||||
|
cout<<nb<<" "<<mj;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,10 @@
|
||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
int x,y;
|
||||||
|
cin>>x>>y;
|
||||||
|
cout<<x*y<<" "<<x/y<<" "<<x+y<<" "<<x-y;
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Binary file not shown.
|
@ -0,0 +1,9 @@
|
||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
int x;
|
||||||
|
cin>>x;
|
||||||
|
cout<<x/3600<<" "<<x/60%60<<" "<<x%60<<" "<<x;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Binary file not shown.
|
@ -0,0 +1,14 @@
|
||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
int x,y;
|
||||||
|
cin>>x>>y;
|
||||||
|
int day=(y-x)/2;
|
||||||
|
if((y-x)%2!=0){
|
||||||
|
day+=1;
|
||||||
|
}
|
||||||
|
cout<<day;
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Binary file not shown.
|
@ -0,0 +1,8 @@
|
||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Binary file not shown.
|
@ -0,0 +1,17 @@
|
||||||
|
#include<iomanip>
|
||||||
|
setprecision(n)
|
||||||
|
double a=123.56789;
|
||||||
|
cout<<a<<endl;
|
||||||
|
cout<<setprecision(1)<<fixed<<a<<endl;
|
||||||
|
cout<<setprecision(2)<<fixed<<a<<endl;
|
||||||
|
cout<<setprecision(3)<<fixed<<a<<endl;
|
||||||
|
cout<<setprecision(4)<<fixed<<a<<endl;
|
||||||
|
cout<<setprecision(5)<<fixed<<a<<endl;
|
||||||
|
cout<<setprecision(6)<<fixed<<a<<endl;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Binary file not shown.
|
@ -0,0 +1,11 @@
|
||||||
|
#include<iostream>
|
||||||
|
#include<iomanip>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
double f;
|
||||||
|
cin>>f;
|
||||||
|
double c=5*(f-32)/9;
|
||||||
|
cout<<c;
|
||||||
|
cout<<setprecision(5)<<fixed<<c;
|
||||||
|
return 0;
|
||||||
|
}
|
Binary file not shown.
|
@ -0,0 +1,9 @@
|
||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
int n;
|
||||||
|
cin>>n;
|
||||||
|
cout<<8<<" "<<12*(n-2)<<" "<<6*(n-2)*(n-2);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Binary file not shown.
|
@ -0,0 +1,27 @@
|
||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
|
||||||
|
int a,b;
|
||||||
|
cin>>a>>b;
|
||||||
|
|
||||||
|
if(a>b){
|
||||||
|
cout<<a;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
cout<<b;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,31 @@
|
||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
int t;
|
||||||
|
cin>>t;
|
||||||
|
|
||||||
|
if(t<0){
|
||||||
|
cout<<"µÍÎÂ";
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
cout<<"Õý³£Î¶È";
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,36 @@
|
||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
int a;
|
||||||
|
cin>>a;
|
||||||
|
|
||||||
|
if(a%2==0){
|
||||||
|
cout<<"yes";
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
cout<<"no";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue