Signed-off-by: xujinghao <xujinghao@sairate.fun>
This commit is contained in:
parent
b8327a7a22
commit
9cbd29a67d
29
test.cpp
29
test.cpp
|
@ -1,29 +0,0 @@
|
||||||
#include<iostream>
|
|
||||||
using namespace std;
|
|
||||||
int main(){
|
|
||||||
int a,b,c,d,e,sum;
|
|
||||||
cin >> a>>b>>c>>d>>e;
|
|
||||||
sum += a % 3;
|
|
||||||
b += a / 3;
|
|
||||||
e += a / 3;
|
|
||||||
a = a / 3;
|
|
||||||
sum += b % 3;
|
|
||||||
c += b / 3;
|
|
||||||
a += b / 3;
|
|
||||||
b = b / 3;
|
|
||||||
sum += c % 3;
|
|
||||||
d += c / 3;
|
|
||||||
b += c / 3;
|
|
||||||
c = c / 3;
|
|
||||||
sum += d % 3;
|
|
||||||
e += d / 3;
|
|
||||||
c += d / 3;
|
|
||||||
d = d / 3 ;
|
|
||||||
sum += e % 3;
|
|
||||||
a += e / 3;
|
|
||||||
d += e / 3;
|
|
||||||
e = e / 3 ;
|
|
||||||
cout << a <<' '<< b <<' '<< c <<' '<< d <<' '<< e << endl;
|
|
||||||
cout << sum;
|
|
||||||
return 0;
|
|
||||||
}
|
|
21
未命名1.cpp
21
未命名1.cpp
|
@ -1,21 +0,0 @@
|
||||||
#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;
|
|
||||||
}
|
|
14
未命名2.cpp
14
未命名2.cpp
|
@ -1,14 +0,0 @@
|
||||||
#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;
|
|
||||||
}
|
|
||||||
|
|
15
未命名3.cpp
15
未命名3.cpp
|
@ -1,15 +0,0 @@
|
||||||
#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