Skip to content

Commit

Permalink
ABC370A Raise Both Hands
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicfred committed Sep 9, 2024
1 parent 0a40f97 commit 407a54a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions atcoder/abc370a_raise_both_hands.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Vicfred
// https://atcoder.jp/contests/abc370/tasks/abc370_a
// implementation
#include <iostream>

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

0 comments on commit 407a54a

Please sign in to comment.