Signed-off-by: sairate@sina.cn <weixiaoze@1.com>

This commit is contained in:
sairate@sina.cn 2024-07-14 16:18:37 +08:00
commit 5f87434c30
22 changed files with 183 additions and 0 deletions

11
2024-7-10-1.cpp Normal file
View File

@ -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;
}

BIN
2024-7-10-1.exe Normal file

Binary file not shown.

10
2024-7-10-2.cpp Normal file
View File

@ -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;
}

BIN
2024-7-10-2.exe Normal file

Binary file not shown.

9
2024-7-10-3.cpp Normal file
View File

@ -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;
}

BIN
2024-7-10-3.exe Normal file

Binary file not shown.

14
2024-7-11-1.cpp Normal file
View File

@ -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;
}

BIN
2024-7-11-1.exe Normal file

Binary file not shown.

8
2024-7-11-2.cpp Normal file
View File

@ -0,0 +1,8 @@
#include<iostream>
using namespace std;
int main(){
return 0;
}

BIN
2024-7-11-2.exe Normal file

Binary file not shown.

17
2024-7-12-1.cpp Normal file
View File

@ -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;
}

BIN
2024-7-12-1.exe Normal file

Binary file not shown.

11
2024-7-13-1.cpp Normal file
View File

@ -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;
}

BIN
2024-7-13-1.exe Normal file

Binary file not shown.

9
2024-7-14-1.cpp Normal file
View File

@ -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;
}

BIN
2024-7-14-1.exe Normal file

Binary file not shown.

27
2024-7-14-2.cpp Normal file
View File

@ -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;
}

BIN
2024-7-14-2.exe Normal file

Binary file not shown.

31
2024-7-14-3.cpp Normal file
View File

@ -0,0 +1,31 @@
#include<iostream>
using namespace std;
int main(){
int t;
cin>>t;
if(t<0){
cout<<"µÍÎÂ";
}
else{
cout<<"Õý³£Î¶È";
}
return 0;
}

BIN
2024-7-14-3.exe Normal file

Binary file not shown.

36
2024-7-14-4.cpp Normal file
View File

@ -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;
}

BIN
2024-7-14-4.exe Normal file

Binary file not shown.