#1018
PROSJEK
시간 제한
1s
메모리 제한
32MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%
문제
Author: Goran Gašić
Slavko decided to challenge Mirko! He gave him a real number P and a bag full of pieces of paper with exactly one number 1-5 written on each paper. There is an unlimited quantity of each type of paper.
Mirko’s task is to pick the minimum number of papers in a way that the average of the numbers written on them equals exactly P.
입력
First and only line of input contains real number P. P will have between 1 and 9 decimal places, inclusive (1 ≤ P ≤ 5).
출력
First and only line of output should contain five nonnegative integers - numbers of ones, twos, threes, fours and fives used, respectively. If there are multiple solutions, output any one of them.
예제 입력 1
5.0
예제 출력 1
0 0 0 0 1
예제 입력 2
4.5
예제 출력 2
0 0 0 1 1
예제 입력 3
3.20
예제 출력 3
2 0 0 1 2
코드 제출
코드를 제출하려면 로그인이 필요합니다.
로그인내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.