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

14182번 - Tax 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB105680076278.234%

문제

The amount of income tax imposed on any taxpayer depends on his/her income. For an income less than or equal to 1,000,000 Oshloobs, no tax is paid. For an income greater than 1,000,000 and less than or equal to 5,000,000 Oshloobs, the tax is 10% of the income. For an income over 5,000,000 Oshloobs, the tax is 20% of the income. You should write a program to calculate the net income of any given employee after the deducted tax.

입력

There are multiple lines in the input. Each line contains an employee’s income before the tax, which is a positive integer, a multiple of 1000, and not greater than 10,000,000. The input terminates with a line containing 0 which should not be processed.

출력

For each employee, output a line containing the net income after the deducted tax.

제한

예제 입력 1

10000
50000
2000000
7500000
0

예제 출력 1

10000
50000
1800000
6000000

힌트

출처

ICPC > Regionals > Asia West Continent > Iran > Tehran Site 2016 A번

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

출처

대학교 대회

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

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