AOJ 1186: Accepted
AOJ 1187: Accepted
AOJ 1189: Unsubmitted