Submission #23422993


Source Code Expand

#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define pf push_front
#define ft first
#define sec second
#define pr pair<int,int>
#define ISCC ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
using namespace std; 
int t ,n ,m ,a ,b ,c;
char C[3] = {'<','>','='};
int main()
{ 
	
	cin >> a >> b >> c;
	if(a == b){cout << C[2]; return 0;} 
	if(c%2==0 && abs(a)==abs(b)) {cout << C[2]; return 0;} 
	if(c%2 == 0)
	{
		cout << C[(abs(a)>abs(b))];
	}
	else
	{
		if(a*b>=0) cout << C[(a>b)];
		else cout << C[(a>=0)];
	}

	return 0;
}

Submission Info

Submission Time
Task C - POW
User ck1080012
Language C++ (GCC 9.2.1)
Score 300
Code Size 574 Byte
Status AC
Exec Time 7 ms
Memory 3636 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 28
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hand_01.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_21.txt, random_22.txt, random_23.txt, random_24.txt, random_25.txt, random_26.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
hand_01.txt AC 7 ms 3548 KiB
random_01.txt AC 3 ms 3552 KiB
random_02.txt AC 2 ms 3540 KiB
random_03.txt AC 2 ms 3636 KiB
random_04.txt AC 2 ms 3540 KiB
random_05.txt AC 2 ms 3540 KiB
random_06.txt AC 2 ms 3484 KiB
random_07.txt AC 7 ms 3552 KiB
random_08.txt AC 7 ms 3636 KiB
random_09.txt AC 2 ms 3360 KiB
random_10.txt AC 3 ms 3532 KiB
random_11.txt AC 2 ms 3360 KiB
random_12.txt AC 2 ms 3424 KiB
random_13.txt AC 2 ms 3568 KiB
random_14.txt AC 3 ms 3540 KiB
random_15.txt AC 2 ms 3528 KiB
random_16.txt AC 2 ms 3356 KiB
random_17.txt AC 2 ms 3412 KiB
random_18.txt AC 2 ms 3512 KiB
random_21.txt AC 3 ms 3544 KiB
random_22.txt AC 2 ms 3564 KiB
random_23.txt AC 2 ms 3528 KiB
random_24.txt AC 7 ms 3568 KiB
random_25.txt AC 2 ms 3416 KiB
random_26.txt AC 2 ms 3560 KiB
sample_01.txt AC 2 ms 3540 KiB
sample_02.txt AC 3 ms 3584 KiB
sample_03.txt AC 2 ms 3356 KiB