Submission #57670850
Source Code Expand
Copy
#include <bits/stdc++.h>using namespace std;using ll = long long;#define rep(i, x) for (int i = 0; i < (x); i++)int main(){int L, R;cin >> L >> R;if (L == 1 && R == 0){cout << "Yes" << endl;}else if (L == 0 && R == 1){cout << "No" << endl;}else{cout << "Invalid" << endl;
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, x) for (int i = 0; i < (x); i++) int main() { int L, R; cin >> L >> R; if (L == 1 && R == 0) { cout << "Yes" << endl; } else if (L == 0 && R == 1) { cout << "No" << endl; } else { cout << "Invalid" << endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Raise Both Hands |
User | ryoh1004 |
Language | C++ 23 (gcc 12.2) |
Score | 100 |
Code Size | 341 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3564 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample00.txt, sample01.txt |
All | sample00.txt, sample01.txt, testcase00.txt, testcase01.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample00.txt | AC | 1 ms | 3504 KB |
sample01.txt | AC | 1 ms | 3564 KB |
testcase00.txt | AC | 1 ms | 3500 KB |
testcase01.txt | AC | 1 ms | 3436 KB |