Submission #57273879


Source Code Expand

a, b = [int(i) for i in input().split()]

if a == b:
	print(1)
elif (max(a, b) - min(a, b)) % 2:
	print(2)
else:
	print(3)

Submission Info

Submission Time
Task A - 369
User c1ampy
Language Python (CPython 3.11.4)
Score 100
Code Size 131 Byte
Status AC
Exec Time 10 ms
Memory 8516 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 12
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 02_handmade_00.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 9 ms 8448 KiB
00_sample_01.txt AC 9 ms 8516 KiB
00_sample_02.txt AC 9 ms 8376 KiB
01_random_00.txt AC 9 ms 8488 KiB
01_random_01.txt AC 9 ms 8496 KiB
01_random_02.txt AC 9 ms 8492 KiB
01_random_03.txt AC 9 ms 8492 KiB
01_random_04.txt AC 9 ms 8436 KiB
02_handmade_00.txt AC 9 ms 8432 KiB
02_handmade_01.txt AC 9 ms 8468 KiB
02_handmade_02.txt AC 10 ms 8468 KiB
02_handmade_03.txt AC 9 ms 8460 KiB