Skip to content
bradendubois edited this page Nov 8, 2021 · 10 revisions

ABC

ID: abc

Difficulty: 2.0

CPU Time: 1 second

Memory: 1024 MB

Solution

Take in the 3 numbers and sort them in ascending order, then take in the string denoting the order. Going through the string, if the value is A, output the smallest number, B is the middle, and C is the largest number.

Clone this wiki locally