| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 128 MB | 792 | 435 | 393 | 57.625% |
Someone is waiting at a secret location and has sent a text message with the coordinates of their location. The message contains the latitude and longitude coordinates in degrees, minutes, and seconds. Of course, the message is encoded so you must write a program to decode the message. The message is 6 lines and the number of characters in each line corresponds to the coordinates of the secret location.
There are six lines of input.
There should be two lines of output. The first line will start with the word Latitude followed by three positive integers and the integers will be separated by colons. The second line will start with the word Longitude followed by three positive integers and the integers will be separated by colons. The output should have the following format.
Latitude x1:x2:x3 Longitude x4:x5:x6
There should be one space between the first word on each line and the first positive integer on the line. The variable xi (1≤ i ≤ 6) is the number of characters in the ith line of input.
This is a simple message. Each line of the input, represents some positive integer. The first three lines are for latitude and the last three lines are for longitude.
Latitude 25:23:33 Longitude 9:32:39
School > PLU High School Programming Contest > PLU 2013 > Novice 4번