OpenGenus / cosmos

World's largest Contributor driven code dataset | Used in Quark Search Engine, @OpenGenus IQ, OpenGenus Visual Project
http://internship.opengenus.org
GNU General Public License v3.0
13.57k stars 3.69k forks source link

CODECHEF Bytelandian gold coins (COINS) in C and Python #4682

Open ka1shi opened 4 years ago

ka1shi commented 4 years ago

This is a(n):

Details: In Byteland they have a very strange monetary system.

Each Bytelandian gold coin has an integer number written on it. A coin n can be exchanged in a bank into three coins: n/2, n/3 and n/4. But these numbers are all rounded down (the banks have to make a profit).

You can also sell Bytelandian coins for American dollars. The exchange rate is 1:1. But you can not buy Bytelandian coins.

You have one gold coin. What is the maximum amount of American dollars you can get for it?

ka1shi commented 4 years ago

kindly assign it to me.

abhijeet010304 commented 4 years ago

Hey @ka1shi since you are already working in MARBLES problem, please allow the admin to assign this task to me.I could contribute to it in C++ and Python

ka1shi commented 4 years ago

Hi @abhijeet010304, I have already started working on it. Please go ahead with other tasks. Thank you!

arnavb commented 4 years ago

@abhijeet010304 if @ka1shi is working on this in a particular language, then they have every right to continue. You can contribute to this as well, as long as the programming language is different.

abhijeet010304 commented 4 years ago

@ka1shi I would like to submit it in C++ you can do the same in python, it would be helpful for both .NO offense just a humble request.....

ka1shi commented 4 years ago

@abhijeet010304 go ahead. I will submit it in python. You can submit it in C++.

abhijeet010304 commented 4 years ago

OK thanks a lot...