diff --git a/atcoder/abc371a_jiro.cpp b/atcoder/abc371a_jiro.cpp new file mode 100644 index 0000000..664734b --- /dev/null +++ b/atcoder/abc371a_jiro.cpp @@ -0,0 +1,22 @@ +// Vicfred +// https://atcoder.jp/contests/abc371/tasks/abc371_a +// implementation +#include + +using namespace std; + +int main() { + string Sab, Sac, Sbc; + cin >> Sab >> Sac >> Sbc; + string brothers = Sab + Sac + Sbc; + if (brothers == "><<" or brothers == "<>>") { + cout << "A" << endl; + } + if (brothers == "<<<" or brothers == ">>>") { + cout << "B" << endl; + } + if (brothers == "<<>" or brothers == ">><") { + cout << "C" << endl; + } + return 0; +}