A. Number of Apartments(思维+枚举) B. Barrel(思维+贪心) C. Numbers on Whiteboard(思维+规律) D.待补 E. String Reversal(思维+逆序对)详解