From 24b8b5d7a2f5241f59d01ca16f99231783afff1b Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Sat, 18 Sep 2021 20:07:45 +0800 Subject: [PATCH] A - AtCoder Quiz 2 https://atcoder.jp/contests/abc219/submissions/25924305 --- AtCoder/ABC219/A/A.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 AtCoder/ABC219/A/A.cpp diff --git a/AtCoder/ABC219/A/A.cpp b/AtCoder/ABC219/A/A.cpp new file mode 100644 index 00000000..18d1d6e7 --- /dev/null +++ b/AtCoder/ABC219/A/A.cpp @@ -0,0 +1,19 @@ +#include + +using namespace std; + +int x; + +int main() { + cin >> x; + if (x < 40) { + cout << 40 - x << endl; + } else if (40 <= x && x < 70) { + cout << 70 - x << endl; + } else if (70 <= x && x < 90) { + cout << 90 - x << endl; + } else { + cout << "expert" << endl; + } + return 0; +}