acmicpc.net no. 1011