Masala #6Y9JI5OUPK
SOAT
Soat formati HH:MM:SS ko'rinishda bo`lishi ma`lum bo`lsa, soat qaysi vaqtlarda ″am″ yoki ″pm″ deb atalishini aniqlovchi dastur tuzing
INPUT.TXT kirish faylida HH:MM:SS formatda vaqt kiritiladi.
00:00:0 ->11:59:59 →am
12:00:00 ->23:59:59 →pm
OUTPUT.TXT chiqish faylida dastur to`g`ri ishlasa yagona qatorda ( “am” va “True” ) yoki ( ”pm” va “True” ) aks holda “Error” yozuvi chiqarilsin.
# | input.txt | output.txt |
---|---|---|
1 |
15:04:12 |
pm True |
Hint - > havola