This page is still under construction.

Parts of this page are still being built. What you see may change.

Coupon Discount

Time limit1sMemory limit256 MB

Summary
Apply a 20 percent coupon to each listed price and print the discounted price rounded to two decimals.
Level

Easy1 of 10

Topics
Math
Solved
No attempts yet

Problem

어떤 물건이든 20% 할인해 주는 쿠폰이 있다.

원래 가격이 주어질 때, 쿠폰을 적용한 가격을 구하는 프로그램을 작성하시오.

Input

첫 번째 줄에 테스트케이스 수 TT가 주어진다.

이후 TT개의 줄에 각 물건의 원래 가격이 소수점 둘째 자리까지 주어진다.

Output

각 테스트케이스마다 할인된 가격을 달러 단위로 출력한다.

나누어떨어지지 않으면 소수점 셋째 자리에서 반올림하여 둘째 자리까지 출력한다.

Examples4

  1. Example 1

    Input
    3
    100.00
    59.99
    20.00
    
    Expected output
    80.00
    47.99
    16.00
    
  2. Example 2

    Input
    1
    50.00
    
    Expected output
    40.00
    
  3. Example 3

    Input
    2
    10.00
    25.50
    
    Expected output
    8.00
    20.40
    
  4. Example 4

    Input
    1
    0.01
    
    Expected output
    0.01