AOJ: ALDS1: 3.A ~ 3.C: AC
AOJ: ALDS1: 3.D: still working