RiseOJ는 solved.ac와 제휴 관계가 없습니다. 티어 아이콘 © solved.ac. solved.ac
포럼
COCI00133

Sok

스페셜 저지 — 출력을 사용자 정의 프로그램으로 검사하므로 여러 정답이 인정될 수 있습니다.
Bronze I 브론즈 I
난이도
1s
시간 제한
32MB
메모리 제한
0
맞았습니다!!
0
제출 수
0.0%
정답률
레이팅

의견: 0

설명

Mirko and Slavko bought a few litters of orange, apple and pineapple juice.
They are now whipping up a non alcoholic cocktail following a recipe they
found on the Internet. Sadly, they figured out too late that not only you
should use recipes when making cocktails, you should also use them when
planning how much juice to buy.
Write a program that will determine how much of each juice they will have
leftover, after they make as much cocktail as possible, respecting the recipe.

제약
입력 형식

The first line contains three integers, \(A\), \(B\), \(C\) (\(1 \le A, B, C \le 500\)), amount of orange, apple and pineapple juice they bought, in litres.

The second line contains three integers, \(I\), \(J\), \(K\) (\(1 \le I, J, K \le 50\)), the ratio of orange, apple and pineapple juice in the cocktail.

출력 형식

The first and only line of output should contain three decimal numbers, the leftover amounts of each juice, in litres.

Note: solutions with relative error \(10^{-4}\) or smaller will be accepted.

서브태스크
서브태스크점수설명

Test 1

10점

None

Test 2

10점

None

Test 3

10점

None

Test 4

10점

None

Test 5

10점

None

Test 6

10점

None

Test 7

10점

None

Test 8

10점

None

Test 9

10점

None

Test 10

10점

None

예제 1
입력
10 10 10
3 3 3
출력
0 0 0
예제 2
입력
9 9 9
3 2 1
출력
0 3 6
예제 3
입력
10 15 18
3 4 1
출력
0 1.666667 14.666667
문제 정보

riseoj 작성

출처 COCI 2009/2010 Contest 5

평가 및 의견

Sok

개요
출제자 난이도 Bronze I 브론즈 I 의견 0 / 50 공개 집계 (커뮤니티 난이도, 주요 주제, 품질)는 의견이 충분히 모이면 공개됩니다.

Log in to rate problems.

개별 의견

아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.

풀이 제출

Sok

게스트로 둘러보고 있습니다. 로그인하면 풀이를 제출하고 진행 상황을 확인할 수 있습니다. 로그인하고 제출하기
공개
C++20 Tab 들여쓰기 · Ctrl+/ 주석 토글 · Enter 자동 들여쓰기
1 1 1 0 공백: 4 · UTF-8