Masala #M70JLKIQZF
Staklash #5
Noobda 3 xil turdagi Itemlar bor. Unda S1 turdagi Itemdan X ta, S2 turdagi Itemdan Y ta, S3 turdagi Itemdan Z ta bor. U Itemlar faqat 64x staklanmaydi, unda 16x va 1x staklanadiganlari ham bor, shunga xushyor bo'ling. Endi siz uni Itemlaridan foydalanib uning HOTTBARiga staklab beruvchi dastur tuzing.(Aniqroq bilish uchun testlarga qarang)
Kirish faylida 1 - qatorda X,Y,Z — Noobdagi Itemlar soni, qolgan 2-3-4-qatorlarda S1,S2,S3 — Noobdagi Itemlar kiritiladi. 64x,16x,1x ni bilish uchun Staklash #3 ga kiring.
Masalada so'zalgan javobni chop eting.
# | input.txt | output.txt |
---|---|---|
1 |
43 92 58 building block decoration block egg |
|43|64|28|16|16|16|10| | | |
2 |
6 82 78 arrow ender pearl snowball |
|6|16|16|16|16|16|2|16|16| |
3 |
78 6 46 pickaxe book building block |
|1|1|1|1|1|1|1|1|1| |
bu masalada 2 bir xil item ham hotbarda alohida staklanadi, 9 tadan ortganini chop etmay qo'ya vering,.