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

×

AC solution gives WA on resubmitting!

I was going through 'All Submissions' of the problem with code: COOLING (https://www.codechef.com/problems/COOLING).

I found a submission by 'blackpanther' (https://www.codechef.com/viewsolution/7866286).

I couldn't understand the logic behind the code, and so I submitted it to see how could it work!

I got WA with the same solution (https://www.codechef.com/viewsolution/18605583)

Am just a little confused, as to how is this possible?

asked 20 May '18, 12:37

arnavvarshney's gravatar image

3★arnavvarshney
1438
accept rate: 10%

edited 20 May '18, 12:38

Waiting for an appropriate answer! Someone look into the matter please!

(30 May '18, 20:15) arnavvarshney3★

The only reasonable explanation can be the updation of the test cases without rejudging the already submitted solutions.

The solution must have passed the previous test cases; however, fails for the updated ones...

The problem is easy, however. The editorial is also provided. You need to greedily assign the lightest pie to the rack having the least capacity which can hold the pie successfully.

link

answered 30 May '18, 23:11

sarthakmanna's gravatar image

6★sarthakmanna
946115
accept rate: 38%

Ik how to solve the problem, I was just confused over the judging process!

(30 May '18, 23:13) arnavvarshney3★
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,056
×31
×29
×9

question asked: 20 May '18, 12:37

question was seen: 151 times

last updated: 30 May '18, 23:13