diff --git a/zeta_cpp/completed/2744.cpp b/zeta_cpp/completed/2744.cpp new file mode 100644 index 0000000..b9635d8 --- /dev/null +++ b/zeta_cpp/completed/2744.cpp @@ -0,0 +1,19 @@ +#include + +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; +} \ No newline at end of file diff --git a/zeta_cpp/completed/2754.cpp b/zeta_cpp/completed/2754.cpp new file mode 100644 index 0000000..437609a --- /dev/null +++ b/zeta_cpp/completed/2754.cpp @@ -0,0 +1,42 @@ +#include +#include + +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; +} \ No newline at end of file diff --git a/zeta_python/completed/10699.py b/zeta_python/completed/10699.py new file mode 100644 index 0000000..371f3ea --- /dev/null +++ b/zeta_python/completed/10699.py @@ -0,0 +1,3 @@ +import datetime + +print(datetime.date.today().isoformat()) \ No newline at end of file diff --git a/zeta_python/completed/2420.py b/zeta_python/completed/2420.py new file mode 100644 index 0000000..3612ea3 --- /dev/null +++ b/zeta_python/completed/2420.py @@ -0,0 +1,2 @@ +A = list(map(int, input().split())) +print(abs(A[0] - A[1]))