Skip to content

Commit

Permalink
ABC371A Jiro
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicfred committed Sep 16, 2024
1 parent 407a54a commit 4758d01
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions atcoder/abc371a_jiro.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Vicfred
// https://atcoder.jp/contests/abc371/tasks/abc371_a
// implementation
#include <iostream>

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

0 comments on commit 4758d01

Please sign in to comment.