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

11295번 - Exercising 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB50636632371.938%

문제

In an attempt to get herself fit, a friend of mine has bought herself a pedometer. She wears it when walking and it tells her how far she has walked.

The pedometer is sensitive to movement and is able to count steps reasonably accurately. Before using it, users have to measure the length of a pace and enter it into the pedometer, which can then use it to show how far has been walked. In this problem, you have to do this calculation.

입력

You will be given data for several pedometer users and asked to calculate how far each has walked. The first line of input for a person is a single integer L (10 < L < 100) which gives the stride length, in centimetres, of the person using the pedometer. This will be 0 for the last person whose data is not to be processed.

The next line for each user is a single integer N (1 <= N <=100) which is the number of entries for this person. N lines then follow, each containing a single positive integer no greater than 20,000. This is the number of steps the user has taken for the time period in question.

출력

For each user shown in the input, begin output with a single line of the format

User U

where U is the user number. Users are numbered from 1 in the order they appear in the input. This is followed by N lines, one for each entry showing the number of steps, which shows the appropriate distance walked in kilometers. This will be in the format

d.ddddd

ie at least one number before the decimal point and exactly 5 after it.

제한

예제 입력 1

58
3
10653
8540
12305
46 
2
8500
7945
0

예제 출력 1

User 1
6.17874
4.95320
7.13690
User 2
3.91000
3.65470

힌트

출처

ICPC > Regionals > South Pacific > South Pacific Region > New Zealand Programming Contest > NZPC 2015 D번

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

출처

대학교 대회

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

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