Can anyone tell me if there's any trick in this problem?
Should I report itens with qtd = 0?
Should I use blanks in the output to fill the row?
I'm getting WA and don't know why...
Sample input/output will be good for me too.

Moderator: Board moderators
And also:new item-name item-cost item-selling-price
This line adds a new item (not previously carried in the store) to the potential inventory.
Which would make the following input illegal:and Madam Phoenix guarantees you that there will be no errors in the input
Code: Select all
new test 0.5 1.5
buy test 20
sell test 10
report
delete test
new test 0.5 1.0
buy test 20
sell test 10
report
*
Many lonely hours of feverish debugging are the result of these errors. But hey, consider them part of the problem (which I now have spoilednew item-name item-cost item-selling-price
This line adds a new item (not currently carried in the store) to the potential inventory.
Code: Select all
new item1 0.1 0.2
buy item1 10
sell item1 5
new item1 0.1 0.2