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


Solution failing for larger String value

Hi All, I am new to codechef . I just don't understand why case 3 of subtask 1 is failing?

Subtask #1 (30 points)

1 ≤ T, |s| ≤ 10^3 1 ≤ Sum of |s| over all test cases in a single test file ≤ 10^4.

My solution gives out : Sub-Task Task # Score Result (time) 1 1 NA AC(0.000000) 1 2 NA AC(0.000000) 1 3 NA WA(0.000000)

How can I make it work for string greater than 10^3. for c program the max limit is 4095 characters. For java its much larger . I had submitted the solution in both languages but still the subtask 1 task 3 is WA .If solution is working for strings <10^3 then it should work for larger string as well.I don't understand.Please help me out.

asked 09 Jul '17, 07:47

rishabhdubey9's gravatar image

accept rate: 0%

What is the problem you are trying to solve and what is your solution program?


answered 09 Jul '17, 08:58

dfonnegrag's gravatar image

accept rate: 25%

probably I can discuss this solution after the competition. Else I dont think so we can discuss the solution in open forum with respect to sanity of competition .

(09 Jul '17, 09:16) rishabhdubey92★
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 09 Jul '17, 07:47

question was seen: 357 times

last updated: 09 Jul '17, 09:16