Signed-off-by: 10-4 <10-4@sairate.fun>
This commit is contained in:
parent
c3f6e61e67
commit
49f4b04e50
|
@ -0,0 +1,20 @@
|
|||
#include<iostream>
|
||||
using namespace std;
|
||||
int main() {
|
||||
int a;
|
||||
double s;i
|
||||
f(a<=10);{
|
||||
s=0.8*a+0.2;
|
||||
cout<<setprecision(2)<<fixed<<s<<endl;
|
||||
}else if(a<=30){
|
||||
s=0.8*a+0.2;
|
||||
cout<<setprecision(2)<<fixed<<s<<endl;
|
||||
}else if(a<=30){
|
||||
s=0.8*a+0.2;
|
||||
cout<<setprecision(2)<<fixed<<s<<endl;
|
||||
}
|
||||
|
||||
cin>>a;
|
||||
i
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
#include<iostream>
|
||||
using namespace std;
|
||||
int main() {
|
||||
int a;
|
||||
cin>>a;
|
||||
if (a%4==0&a&100!=0||a%400==0){
|
||||
if{a=}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#include<iostream>
|
||||
using namespace std;
|
||||
int main() {
|
||||
int a,b,c;
|
||||
cin>>a>>b>>c;
|
||||
cout<<(b-a)*(c-1)+a;
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
#include<iostream>
|
||||
using namespace std;
|
||||
int main() {
|
||||
int a, b;
|
||||
cin>>a>>b;
|
||||
cout<<(a*10+b)/21;
|
||||
return 0;
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,11 @@
|
|||
#include<iostream>
|
||||
using namespace std;
|
||||
int main() {
|
||||
int a;
|
||||
cin>>a;
|
||||
if (a%4==0&a&100!=0||a%400==0){
|
||||
cout<<"是闰年。";}
|
||||
else {cout<< "不是闰年";}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue