#843
Bronze IV
ABC
시간 제한
1s
메모리 제한
32MB
제출
3
정답
2
맞힌 사람
2
정답 비율
66.7%

문제

You will be given three integers AA, BB and CC. The numbers will not be given in that exact order, but we do know that AA is less than BB and BB less than CC.

In order to make for a more pleasant viewing, we want to rearrange them in the given order.

입력

The first line contains three positive integers AA, BB and CC, not necessarily in that order. All three numbers will be less than or equal to 100100.

The second line contains three uppercase letters 'A', 'B' and 'C' (with no spaces between them) representing the desired order.

출력

Output the AA, BB and CC in the desired order on a single line, separated by single spaces.

예제 입력 1

1 5 3
ABC

예제 출력 1

1 3 5

예제 입력 2

6 4 2
CAB

예제 출력 2

6 2 4
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
#순위사용자언어시간메모리코드 길이
5908🥇
조서현
Python7ms8384KB147B
8654🥈
고수아
Python8ms8376KB181B
난이도 투표
Bronze IV1명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
#사용자문제결과언어시간메모리코드 길이제출 시간
8654
맞았습니다
Python8ms8376KB181B2026. 05. 31. 12:09
5908
맞았습니다
Python7ms8384KB147B2026. 05. 04. 03:19
5907
런타임 에러
Python--141B2026. 05. 04. 03:19