diff --git a/atcoder/abc370a_raise_both_hands.cpp b/atcoder/abc370a_raise_both_hands.cpp new file mode 100644 index 0000000..baafba0 --- /dev/null +++ b/atcoder/abc370a_raise_both_hands.cpp @@ -0,0 +1,21 @@ +// Vicfred +// https://atcoder.jp/contests/abc370/tasks/abc370_a +// implementation +#include + +using namespace std; + +int main() { + int L, R; + cin >> L >> R; + if((L ^ R) == 1) { + if(L == 1) { + cout << "Yes" << endl; + } else { + cout << "No" << endl; + } + } else { + cout << "Invalid" << endl; + } + return 0; +}