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

×

CHEFMOVR Partial Correct

I'm getting WA in task# 3 and 4. Any help would be highly appreciated. Link to code: https://www.codechef.com/viewsolution/15021403

These are the test cases I used for testing and seem to get the right output everytime.

8

5 2

1 4 5 2 3

3 1

1 4 1

4 2

3 4 3 5

5 3

1 2 2 3 2

4 3

3 2 2 1

5 1

2 2 2 2 2

5 1

1 2 3 7 2

5 1

1 1 1 1 6

asked 18 Aug '17, 22:42

frextrite's gravatar image

4★frextrite
133
accept rate: 0%

edited 18 Aug '17, 22:44


The elements in the vectors are overflowing. Change them to "long long int" from "int"

link

answered 18 Aug '17, 23:31

sudip_95's gravatar image

4★sudip_95
7556
accept rate: 10%

edited 18 Aug '17, 23:32

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:

×471
×42
×9
×2

question asked: 18 Aug '17, 22:42

question was seen: 325 times

last updated: 18 Aug '17, 23:32