Problem with algorithm?

Revision en1, by sazerterus25, 2015-07-23 01:15:28

excuse me, can someone please check my code and tell me what is the problem with my algorithm? The problem is http://codeforces.com/problemset/problem/156/C and my code is: http://ideone.com/xqZvmY

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sazerterus25 2015-07-23 01:15:28 223 Initial revision (published)