You are not logged in. Please login at www.codechef.com to post your questions!

×

Codeforces Round 512 DIV2 Problem-C help

I used a recursive function to check whether the chosen sum equals to the sum of individual segments.The pretests passed successfully but it gave wrong answer on test 17 after system testing. Here is a link to my submission. Can someone please tell me what mistake am I doing. I am not that expert in programming and need some help.:) I am initially removing all trailing and leading zeroes from string as they don't matter.

Never mind found my stupid mistake. That's depressing :(

This question is marked "community wiki".

asked 24 Sep '18, 14:33

pavitra_ag's gravatar image

4★pavitra_ag
696
accept rate: 5%

edited 24 Sep '18, 14:42

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,286
×688
×643

question asked: 24 Sep '18, 14:33

question was seen: 372 times

last updated: 24 Sep '18, 14:42