I tried competitive programming for a bit.

Codeforces #308 (Div.2)

First time participating in Codeforces. In the end, I only solved A out of the 5 problems (A-E). Problem A was just implementation, so it didn’t take much time to solve. For problem B, I think it could have been solved by making a histogram, but I realized that too late. For problem C, I failed on the 4th pretest. I didn’t attempt D or E. Also, I didn’t know that when you fail a pretest, you can see the test case details from “My contest submissions”.

ARC040

I solved 3 out of 4 problems. For problem D, I thought it might require reducing the computational complexity with DP or something, but I couldn’t think of any method other than brute force, so I ran out of time. I’ll keep practicing.