Submission #57740957


Source Code Expand

Copy
#include <bits/stdc++.h>
// #include <atcoder/all>
// using namespace atcoder;
#define rep(i, l, r) for (int i = (l); i < (r); i++)
#define repd(i, l, r) for (int i = (l); i >= (r); i--)
#define all(a) (a).begin(), (a).end()
template<typename T> inline bool chmax(T &a, T b) { return ((a < b) ? (a = b, true) : (false)); }
template<typename T> inline bool chmin(T &a, T b) { return ((a > b) ? (a = b, true) : (false)); }
typedef long long ll;
const ll LINF = 1e18;
const int INF = 1e9;
using namespace std;
using P = pair<int, int>;
int main(void)
{
string S1,S2,S3;
int A,B,C;
cin >> S1 >>S2>>S3;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include <bits/stdc++.h>
// #include <atcoder/all>
// using namespace atcoder;
#define rep(i, l, r) for (int i = (l); i < (r); i++)
#define repd(i, l, r) for (int i = (l); i >= (r); i--)
#define all(a) (a).begin(), (a).end()
template<typename T> inline bool chmax(T &a, T b) { return ((a < b) ? (a = b, true) : (false)); }
template<typename T> inline bool chmin(T &a, T b) { return ((a > b) ? (a = b, true) : (false)); }

typedef long long ll;
const ll LINF = 1e18;
const int INF = 1e9;

using namespace std;
using P = pair<int, int>;

int	main(void)
{	
	string S1,S2,S3;
	int A,B,C;
	cin >> S1 >>S2>>S3;
	if(S1!=S2)
	{
		cout <<"A"<<endl;
		return(0);
	}else{
		if(S1=="<")
		{
			if(S3=="<")
			{
			cout <<"B"<<endl;
			return(0);
			}else{
				cout<<"C"<<endl;
				return(0);
			}
		}
		if(S1==">")
		{
			if(S3=="<")
			{
			cout <<"C"<<endl;
			return(0);
			}else{
				cout<<"B"<<endl;
				return(0);
			}
		}
	}
	return(0);
}

Submission Info

Submission Time
Task A - Jiro
User TheataPro
Language C++ 20 (gcc 12.2)
Score 150
Code Size 983 Byte
Status AC
Exec Time 1 ms
Memory 3492 KB

Compile Error

Main.cpp: In function ‘int main()’:
Main.cpp:20:13: warning: unused variable ‘A’ [-Wunused-variable]
   20 |         int A,B,C;
      |             ^
Main.cpp:20:15: warning: unused variable ‘B’ [-Wunused-variable]
   20 |         int A,B,C;
      |               ^
Main.cpp:20:17: warning: unused variable ‘C’ [-Wunused-variable]
   20 |         int A,B,C;
      |                 ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 150 / 150
Status
AC × 2
AC × 6
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 3488 KB
00_sample_02.txt AC 1 ms 3452 KB
01_test_01.txt AC 1 ms 3460 KB
01_test_02.txt AC 1 ms 3492 KB
01_test_03.txt AC 1 ms 3488 KB
01_test_04.txt AC 1 ms 3484 KB


2025-04-05 (Sat)
20:15:20 +00:00