Submission #57761195
Source Code Expand
Copy
#include <bits/stdc++.h>using namespace std;int main() {char a, b, c;cin >> a >> b >> c;// Check if B is the middle brotherif ((a == '<' && c == '<') || (a == '>' && c == '>')) {cout << "B" << endl;}// Check if A is the middle brotherelse if ((a == '>' && b == '<') || (a == '<' && b == '>')) {cout << "A" << endl;}// Check if C is the middle brotherelse if ((b == '>' && c == '<') || (b == '<' && c == '>')) {cout << "C" << endl;}return 0;
#include <bits/stdc++.h> using namespace std; int main() { char a, b, c; cin >> a >> b >> c; // Check if B is the middle brother if ((a == '<' && c == '<') || (a == '>' && c == '>')) { cout << "B" << endl; } // Check if A is the middle brother else if ((a == '>' && b == '<') || (a == '<' && b == '>')) { cout << "A" << endl; } // Check if C is the middle brother else if ((b == '>' && c == '<') || (b == '<' && c == '>')) { cout << "C" << endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Jiro |
User | jackofall |
Language | C++ 20 (gcc 12.2) |
Score | 150 |
Code Size | 557 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3540 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 150 / 150 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_01.txt, 00_sample_02.txt |
All | 00_sample_01.txt, 00_sample_02.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | AC | 1 ms | 3532 KB |
00_sample_02.txt | AC | 1 ms | 3476 KB |
01_test_01.txt | AC | 1 ms | 3532 KB |
01_test_02.txt | AC | 1 ms | 3540 KB |
01_test_03.txt | AC | 1 ms | 3532 KB |
01_test_04.txt | AC | 1 ms | 3492 KB |