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

×

[closed] Where is my logic wrong?

-11

In this problem it's simply to find out number of ones in a string and then sum from 1 to that number. but this logic is giving wrong output on submitting...Anyone has idea why this is going wrong when it's working for the test cases given..??

asked 06 Jul '14, 12:18

ansjin10's gravatar image

2★ansjin10
-461
accept rate: 0%

closed 06 Jul '14, 16:11

kunal361's gravatar image

4★kunal361
6.0k133272

The question has been closed for the following reason "Onging Contest!!" by kunal361 06 Jul '14, 16:11


-9
Answer is hidden because of too many downvotes. Click here to view.

answered 06 Jul '14, 13:41

bournecoder's gravatar image

3★bournecoder
206135
accept rate: 40%

-9
Answer is hidden because of too many downvotes. Click here to view.

answered 06 Jul '14, 13:51

sparky007's gravatar image

2★sparky007
164511
accept rate: 0%

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

question asked: 06 Jul '14, 12:18

question was seen: 356 times

last updated: 06 Jul '14, 16:11

Related questions