create dev channel

This commit is contained in:
2025-05-07 04:44:30 +09:00
parent 603fca2b20
commit 16a8e59450
426 changed files with 643 additions and 36 deletions

View 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;
}