Submission #23390766


Source Code Expand

#include<stdio.h>
#include<stdlib.h>

int main(){
	int a,b,c;
	scanf("%d%d%d",&a,&b,&c);
	int ac_minus = c%2==1&&a<0;
	int bc_minus = c%2==1&&b<0;
	
	if(ac_minus!=bc_minus){
		if(ac_minus)puts("<");
		else puts(">");
	}else{
		if(abs(a)==abs(b))puts("=");
		else if(abs(a)<abs(b) ^ ac_minus)puts("<");
		else puts(">");
	}
}

Submission Info

Submission Time
Task C - POW
User kyopro_friends
Language C (GCC 9.2.1)
Score 300
Code Size 341 Byte
Status AC
Exec Time 6 ms
Memory 1596 KiB

Compile Error

./Main.c: In function ‘main’:
./Main.c:6:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
    6 |  scanf("%d%d%d",&a,&b,&c);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~

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 6 ms 1540 KiB
random_01.txt AC 1 ms 1576 KiB
random_02.txt AC 1 ms 1544 KiB
random_03.txt AC 1 ms 1596 KiB
random_04.txt AC 1 ms 1464 KiB
random_05.txt AC 2 ms 1472 KiB
random_06.txt AC 1 ms 1532 KiB
random_07.txt AC 1 ms 1580 KiB
random_08.txt AC 1 ms 1580 KiB
random_09.txt AC 2 ms 1588 KiB
random_10.txt AC 1 ms 1584 KiB
random_11.txt AC 2 ms 1468 KiB
random_12.txt AC 1 ms 1584 KiB
random_13.txt AC 1 ms 1580 KiB
random_14.txt AC 1 ms 1540 KiB
random_15.txt AC 3 ms 1540 KiB
random_16.txt AC 1 ms 1596 KiB
random_17.txt AC 1 ms 1592 KiB
random_18.txt AC 1 ms 1592 KiB
random_21.txt AC 1 ms 1472 KiB
random_22.txt AC 1 ms 1576 KiB
random_23.txt AC 1 ms 1596 KiB
random_24.txt AC 1 ms 1468 KiB
random_25.txt AC 1 ms 1588 KiB
random_26.txt AC 2 ms 1592 KiB
sample_01.txt AC 1 ms 1540 KiB
sample_02.txt AC 1 ms 1588 KiB
sample_03.txt AC 1 ms 1572 KiB