Submission #59223449
Source Code Expand
///In the name of ALLAH, The Most Gracious and The Most Merciful
///Praise be to ALLAH
#include<bits/stdc++.h>
using namespace std;
const int sz = 1e5 + 10;
int ar[sz];
using ll = long long;
#define el "\n"
#define optimize() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define testCase int __; cin >> __; while(__--)
#define fraction() cout.unsetf(ios::floatfield); cout.precision(10); cout.setf(ios::fixed,ios::floatfield);
void solve()
{
char a, b, c; cin >> a >> b >> c;
if(a == '<')
{
if(b == '<')
{
if(c == '<')
{
cout << "B" << el;
}
else if(c == '>')
{
cout << "C" << el;
}
}
else if(b == '>')
{
if(c == '<')
{
//cout << "" << el;
}
else if(c == '>')
{
cout << "A" << el;
}
}
}
else if(a == '>')
{
if(b == '<')
{
if(c == '<')
{
cout << "A" << el;
}
else if(c == '>')
{
//cout << "" << el;
}
}
else if(b == '>')
{
if(c == '<')
{
cout << "C" << el;
}
else if(c == '>')
{
cout << "B" << el;
}
}
}
}
int main()
{
optimize();
//testCase
solve();
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Jiro |
| User | InFi4D_0 |
| Language | C++ 20 (gcc 12.2) |
| Score | 150 |
| Code Size | 1618 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3532 KiB |
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 | 3332 KiB |
| 00_sample_02.txt | AC | 1 ms | 3532 KiB |
| 01_test_01.txt | AC | 1 ms | 3460 KiB |
| 01_test_02.txt | AC | 1 ms | 3408 KiB |
| 01_test_03.txt | AC | 1 ms | 3416 KiB |
| 01_test_04.txt | AC | 1 ms | 3332 KiB |