Submission #45088108


Source Code Expand

coordinates = {'A' => 0, 'B' => 3, 'C' => 4, 'D' => 8, 'E' => 9, 'F' => 14, 'G' => 23}

p, q = gets.chomp.split

puts (coordinates[p] - coordinates[q]).abs

Submission Info

Submission Time
Task B - ABCDEFG
User thatblue
Language Ruby (2.7.1)
Score 200
Code Size 161 Byte
Status AC
Exec Time 58 ms
Memory 14104 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 14
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_handmade_00.txt, 01_handmade_01.txt, 01_handmade_02.txt, 02_random_00.txt, 02_random_01.txt, 02_random_02.txt, 02_random_03.txt, 02_random_04.txt, 02_random_05.txt, 02_random_06.txt, 02_random_07.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 58 ms 14092 KiB
00_sample_01.txt AC 54 ms 13984 KiB
00_sample_02.txt AC 55 ms 13968 KiB
01_handmade_00.txt AC 55 ms 13888 KiB
01_handmade_01.txt AC 55 ms 13896 KiB
01_handmade_02.txt AC 57 ms 14104 KiB
02_random_00.txt AC 55 ms 13920 KiB
02_random_01.txt AC 55 ms 13964 KiB
02_random_02.txt AC 54 ms 13924 KiB
02_random_03.txt AC 56 ms 13972 KiB
02_random_04.txt AC 58 ms 13968 KiB
02_random_05.txt AC 55 ms 14008 KiB
02_random_06.txt AC 57 ms 13944 KiB
02_random_07.txt AC 56 ms 13928 KiB