Pixel · Easy AI / ML / DataFree
Hiccups on Paper
The fairground till hiccups. It prints some slips twice, fixes its own mistakes with new versions, and calls every stall by a few nicknames. How many biscuits did each stall really sell?
Find the exact number of biscuits each stall sold.
Score = the share of stalls whose total is exact. All of them exact earns 100 points.
receipts.csv: event,version,stall,kind,quantity,pack, in no order. stall is a nickname; kind is sale, return or void.aliases.csv: alias,stall, the stall behind every nickname. sample_submission.csv shows the answer's shape.stall,biscuits, then one row for every stall of aliases.csv, in any order.quantity ≤ 20 and pack is 1, 6 or 12.event,version,stall,kind,quantity,pack 101,1,Honey Hut,sale,4,12 101,2,Honey Hut,void,4,12 101,2,Honey Hut,void,4,12 102,1,stall-50,sale,3,1 103,1,coral corner,sale,5,1 104,1,Honey Hut,sale,6,6 104,2,Honey Hut,sale,8,6 104,2,Honey Hut,sale,8,6 105,1,Honey Hut,sale,5,1 105,1,Honey Hut,sale,5,1 106,1,Honey Hut,sale,5,6 106,2,Coral Corner,sale,5,6 107,1,stall-50,sale,4,1 108,1,Honey Hut,return,2,12 109,1,coral corner,sale,4,1
alias,stall coral corner,coral Coral Corner,coral stall-50,blue Blue Barrel,blue Honey Hut,honey honey hut,honey
stall,biscuits coral,0 blue,0 honey,0
stall,biscuits coral,39 blue,7 honey,29
Sign in to play. It is free.
Sign in