complete 2420, 2744, 2754, 10699
This commit is contained in:
19
zeta_cpp/completed/2744.cpp
Normal file
19
zeta_cpp/completed/2744.cpp
Normal file
@@ -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;
|
||||
}
|
||||
42
zeta_cpp/completed/2754.cpp
Normal file
42
zeta_cpp/completed/2754.cpp
Normal file
@@ -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;
|
||||
}
|
||||
3
zeta_python/completed/10699.py
Normal file
3
zeta_python/completed/10699.py
Normal file
@@ -0,0 +1,3 @@
|
||||
import datetime
|
||||
|
||||
print(datetime.date.today().isoformat())
|
||||
2
zeta_python/completed/2420.py
Normal file
2
zeta_python/completed/2420.py
Normal file
@@ -0,0 +1,2 @@
|
||||
A = list(map(int, input().split()))
|
||||
print(abs(A[0] - A[1]))
|
||||
Reference in New Issue
Block a user