Tuenti Challenge 7

Challenge 12 - That’s a lot of moneyz

Your friend has a lot of spare coins and asks you for help as the town’s fastest money-counter. However, you recently had some technical problems and ended up using your teapot as a router, so the photos coming through are a little bit corrupted. But that’s no problem for you, am I right?

As you can guess after seeing the image, your friend uses euro coins, and each time he sends you a photo you will have to tell him how much money (in cents) is in the image. Remember that 1 and 2 euro coins are equivalent to 100 and 200 cents each!

52.49.91.111:3456

NOTE: In this level, the output for the submit phase is the same as the output for the test phase.

Test your code

You can test your program against both the input provided in the test phase and the input provided in the submit phase. A nice output will tell you if your program got the right solution or not. You can try as many times as you want to. Be careful with extra whitespaces, the output should be exactly as described.

Test your program against the input provided in the test phase

Download test input

Program output:

Test your program against the input provided in the submit phase

Download input

Program output:

During the submit phase, in some problems, we might give your program harder inputs. As with the test token, a nice output will tell you if your program got the right solution or not. You can try as many times as you need.

In the actual contest you first need to solve the test phase before submitting the code, you must provide the source code used to solve the challenge and you can only submit once (once your solution is submitted you won't be able to amend it to fix issues or make it faster).

If you have any doubts, please check the info section.