Getting WA on 85C

Revision en1, by skpro19, 2017-09-10 12:56:31

I am getting a WA on this problem. Can someone suggest, what is wrong with my logic?

Problem: http://codeforces.me/contest/85/problem/C

My submission: http://codeforces.me/contest/85/submission/30241748

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English skpro19 2017-09-10 12:56:31 228 (published)