102. one person worked 4 days, then 2 days break, then work again, same period, her birthday is 257 days ago, ask her birthday work or not? A. today is the second day of the break B. 5 days ago she work 我是這麼想的﹐看看對不對。此人每6天循環一次。257=42*6+5。所以條件B應該OK。去掉完整的42個6天。要從當前天(不管今天工作不工作)往前數5天就是和birthday那天一樣的。而題目條件正好是5天前。所以birthday那天工作。 1 2 │1 2 3 4 │1 2│1 2 3 4 │1 2 如果從上面圖中可看出當前天可以是工作的第1,2,3天和休息的第二天。這4天無論是哪天往回推257天都是工作日。 108. one dealer selll cars and trucks, the average price of all sales is some value, the average price of cars is some value, ask if sell more truck than cars? A. the average price of truck is some value B. sell 75 cars A條件應該夠。設t是number of trucks sold。c是number of cars sold。pt是avg trunk price。pc是avg car price. p 是avg of all sales price. (pt*t + pc*c) / (t + c) = p 題目中p, pc已知。 如有A﹐pt可知。這樣由上式可知t/c,也就知道誰多了。如果在加上B﹐那所有數都出來了。 A條件應該夠。設t是number of trucks sold。c是number of cars sold。pt是avg trunk price。pc是avg car price. p 是avg of all sales price. (pt*t + pc*c) / (t + c) = p 題目中p, pc已知。 如有A﹐pt可知。這樣由上式可知t/c,也就知道誰多了。如果在加上B﹐那所有數都出來了。 |