Page not loading? Try clicking here.
Placeholder

#9230
Language restricted

선택제어문 - 자가진단 3-2 1s 32MB

Problems

시간을 입력받아 12시전 까지는 "AM"을, 12시부터 24시까지는 "PM"을 출력하는 프로그램을 작성하시오.


Input

첫 줄에 시간이 주어진다. 시간은 1 이상 24 이하의 정수다.


Example #1

12
PM

Example #2

1
AM

Source

자기주도 파이썬 4판

You must sign in to write code.