A Miner Task - Java
You are given a sequence of strings, each on a new line. Every odd line on the console is representing a resource (e.g. Gold, Silver, Copper, and so on) , and every even – quantity. Your task is to collect the resources and print them each on a new line.
Print the resources and their quantities in format:
{resource} –> {quantity}
The quantities inputs will be in the range [1 … 2 000 000 000]
Не мога да разбера защо Judge ги иска в друг ред или какво точно иска.
http://pastebin.com/4UiF2AtM
Точно това беше проблемът.