Codeforces #341 Div2. C. Wet Shark and Flowers

なんか最近CF Div2回ミスが多すぎる…。 http://codeforces.com/contest/621/problem/C