Submission #57738903
Source Code Expand
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll = long long; using ld = long double; using mint = modint1000000007; #define rep(i,n) for (int i=0;i<(ll)(n);i++) #define inf 1e+18 #define pi 3.14159265358979323 int main(){ char ab,ac,bc; cin>>ab>>ac>>bc; if (ab=='<'){ if (ac=='<'){ if (bc=='<') cout<<'B'<<endl; else cout<<'C'<<endl; } if (ac=='>'){ if (bc=='<') cout<<'C'<<endl; else cout<<'A'<<endl; } } if (ab=='>'){ if (ac=='<') cout<<'A'<<endl; if (ac=='>'){ if (bc=='>') cout<<'B'<<endl; else cout<<'C'<<endl; } } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Jiro |
User | Fkun |
Language | C++ 20 (gcc 12.2) |
Score | 150 |
Code Size | 711 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 | 3476 KiB |
00_sample_02.txt | AC | 1 ms | 3400 KiB |
01_test_01.txt | AC | 1 ms | 3396 KiB |
01_test_02.txt | AC | 1 ms | 3532 KiB |
01_test_03.txt | AC | 1 ms | 3528 KiB |
01_test_04.txt | AC | 1 ms | 3396 KiB |