aizu ALDS1 1D/2D. codeeval 145. kcs 1011/1012.