시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 1910 1171 1100 63.364%

문제

상근이는 망가진 전투 드로이드를 고치려고 하고 있다. 전투 드로이드의 각 부품의 가격은 다음과 같다.

블래스터 라이플 \$350.34
시각 센서 \$230.90
청각 센서 \$190.55
\$125.30
다리 \$180.90

입력

첫째 줄에 테스트 케이스의 개수가 주어진다. 각 테스트 케이스는 음이 아닌 정수 다섯 개(A B C D E)로 이루어져 있다.

  • A: 필요한 블래스터 라이플의 개수
  • B: 필요한 시각 센서의 개수
  • C: 필요한 청각 센서의 개수
  • D: 필요한 팔의 수
  • E: 필요한 다리의 수

출력

각 테스트 케이스 마다, 입력으로 주어진 부품을 모두 구매하는데 필요한 비용을 소수점 둘째 자리까지 출력한다. 달러 표시도 출력해야 한다. 정답은 1억보다 작거나 같다.

예제 입력 1

3
20 10 14 3 9
19 17 12 8 10
11 9 8 22 33

예제 출력 1

$13987.50
$15679.76
$16182.54
W3sicHJvYmxlbV9pZCI6IjUzNjEiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWM4MDRcdWQyMmMgXHViNGRjXHViODVjXHVjNzc0XHViNGRjIFx1YWMwMFx1YWNhOSIsImRlc2NyaXB0aW9uIjoiPHA+XHVjMGMxXHVhZGZjXHVjNzc0XHViMjk0IFx1YjlkZFx1YWMwMFx1YzljNCBcdWM4MDRcdWQyMmMgXHViNGRjXHViODVjXHVjNzc0XHViNGRjXHViOTdjIFx1YWNlMFx1Y2U1OFx1YjgyNFx1YWNlMCBcdWQ1NThcdWFjZTAgXHVjNzg4XHViMmU0LiBcdWM4MDRcdWQyMmMgXHViNGRjXHViODVjXHVjNzc0XHViNGRjXHVjNzU4IFx1YWMwMSBcdWJkODBcdWQ0ODhcdWM3NTggXHVhYzAwXHVhY2E5XHVjNzQwIFx1YjJlNFx1Yzc0Y1x1YWNmYyBcdWFjMTlcdWIyZTQuPFwvcD5cclxuXHJcbjx0YWJsZSBjbGFzcz1cIn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ZGVkJm5ic3A7PFwvbGk+XHJcbjxcL3VsPlxyXG4iLCJvdXRwdXQiOiI8cD5Gb3IgZWFjaCBkYXRhIHNldCBwcmludCB0aGUgdG90YWwgY29zdCBvZiByZXBsYWNpbmcgZGFtYWdlZCBiYXR0bGUgZHJvaWRzIGZvcm1hdHRlZCB0byB0d28gZGVjaW1hbCBwbGFjZXMgYW5kIHByZWNlZGVkIGJ5IGEgZG9sbGFyIHNpZ24uJm5ic3A7PFwvcD5cclxuIiwiaGludCI6IiIsIm9yaWdpbmFsIjoiMSIsInByb2JsZW1fbGFuZ19jb2RlIjoiXHVjNjAxXHVjNWI0In1d

출처

High School > PLU High School Programming Contest > PLU 2011 - Novice 3번

  • 문제를 번역한 사람: baekjoon
  • 잘못된 조건을 찾은 사람: holenet