SCU Practice Contest 2 In Summer

D: String Function Encoding