Signed-off-by: xujinghao <xujinghao@sairate.fun>
This commit is contained in:
parent
2dcccbf1d4
commit
b8327a7a22
|
@ -0,0 +1,21 @@
|
||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
int n;
|
||||||
|
cin >> n;
|
||||||
|
if(n >= 90){
|
||||||
|
cout << "优秀";
|
||||||
|
}
|
||||||
|
else if(n >= 75){
|
||||||
|
cout << "良好";
|
||||||
|
}
|
||||||
|
else if(n >= 60){
|
||||||
|
cout << "及格";
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
cout << "不及格";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
int a,b,c,n;
|
||||||
|
cin >> n;
|
||||||
|
a = n / 100;
|
||||||
|
b = n / 10 % 10;
|
||||||
|
c = n % 100 % 10;
|
||||||
|
cout << c << b << a;
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
#include<iostream>
|
||||||
|
using namespace std;
|
||||||
|
int main(){
|
||||||
|
int x,a,y,b,z;
|
||||||
|
cin >> x >> a >> y >> b;
|
||||||
|
z = (a*x - b*y) / (a - b);
|
||||||
|
cout << z;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue