Logo
(追記) (追記ここまで)

5340번 - Secret Location 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB79243539357.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.

제한

예제 입력 1

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.

예제 출력 1

Latitude 25:23:33
Longitude 9:32:39

힌트

출처

School > PLU High School Programming Contest > PLU 2013 > Novice 4번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /