You are not logged in. Please login at www.codechef.com 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

2★rishabhdubey9
32
accept rate: 0%


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

link

answered 09 Jul '17, 08:58

dfonnegrag's gravatar image

3★dfonnegrag
453
accept rate: 25%

https://www.codechef.com/JULY17/problems/CHEFSIGN

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
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,491
×1,314
×49
×41
×26

question asked: 09 Jul '17, 07:47

question was seen: 357 times

last updated: 09 Jul '17, 09:16