GoLang Solution For UVa Online Judge: 10090 - Marbles
GO Solution For UVa 10090 - Marbles. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.
Problem Description
I have some (say, n) marbles (small glass balls) and I am going to buy some boxes to store them. The boxes are of two types:
Type 1: each box costs c1 Taka and can hold exactly n1 marbles
Type 2: each box costs c2 Taka and can hold exactly n2 marbles
I want each of the used boxes to be filled to
...You can find the full details of the problem Marbles at UVa Online Judge
Sample Input
43 1 3 2 4 40 5 9 5 12 0
Sample Output
13 1 failed
Solution: Please check the main.go snippet for the solution.
Solution originally posted at: Github by @codingsince1985
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login.