complete 2420, 2744, 2754, 10699
This commit is contained in:
1 parent
8cff82e6de
commit
a80280054f
4 files changed
+66
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
string s;
|
||||
cin >> s;
|
||||
for (int i = 0; i < s.length(); i++) {
|
||||
char c = s[i];
|
||||
if (65 <= c && c <= 90) {
|
||||
s[i] += 32;
|
||||
} else {
|
||||
s[i] -= 32;
|
||||
}
|
||||
}
|
||||
cout << s;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
string s;
|
||||
cin >> s;
|
||||
float v;
|
||||
if (s == "A+") {
|
||||
v = 4.3;
|
||||
} else if (s == "A0") {
|
||||
v = 4.0;
|
||||
} else if (s == "A-") {
|
||||
v = 3.7;
|
||||
} else if (s == "B+") {
|
||||
v = 3.3;
|
||||
} else if (s == "B0") {
|
||||
v = 3.0;
|
||||
} else if (s == "B-") {
|
||||
v = 2.7;
|
||||
} else if (s == "C+") {
|
||||
v = 2.3;
|
||||
} else if (s == "C0") {
|
||||
v = 2.0;
|
||||
} else if (s == "C-") {
|
||||
v = 1.7;
|
||||
} else if (s == "D+") {
|
||||
v = 1.3;
|
||||
} else if (s == "D0") {
|
||||
v = 1.0;
|
||||
} else if (s == "D-") {
|
||||
v = 0.7;
|
||||
} else if (s == "F")
|
||||
v = 0.0;
|
||||
else {
|
||||
v = 0.0;
|
||||
}
|
||||
cout << fixed << std::setprecision(1) << v;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import datetime
|
||||
|
||||
print(datetime.date.today().isoformat())
|
||||
@@ -0,0 +1,2 @@
|
||||
A = list(map(int, input().split()))
|
||||
print(abs(A[0] - A[1]))
|
||||
Reference in new issue
Block a user