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

×

WA in Blocked websites

My solution https://www.codechef.com/viewsolution/13536321 Just want to know for which test cases I am getting WA (I am not concerned with TLE as I am using brute force approach)

asked 18 May, 23:49

rdfan19's gravatar image

3★rdfan19
242
accept rate: 50%


You should remove duplicates before printing

link

answered 19 May, 01:02

hruday968's gravatar image

4★hruday968
1.3k8
accept rate: 11%

edited 19 May, 01:10

@hruday968 he is using a set which he later copies in a list to sort. So he is removing duplicates.

link

answered 19 May, 01:06

divyansh_gaba7's gravatar image

4★divyansh_gaba7
75818
accept rate: 24%

@rdfan19....after you read char and then site_name, instead of splitting them by space, split them by space or newline...What I mean is input files at codechef server may not be well formatted..Give it a try and let me know.

link

answered 19 May, 02:13

sandeepg97's gravatar image

5★sandeepg97
911
accept rate: 0%

Printed the length of 'str' to check if it is picking only the desired string or something extra but it seems to get the correct string.Can you please elaborate what you meant.

(19 May, 19:30) rdfan193★

Please look at my submission.I have done that in an easy way using hashing and let me know if you have any doubt

link

answered 19 May, 20:09

hruday968's gravatar image

4★hruday968
1.3k8
accept rate: 11%

I am not familiar with c++ STL. Just curious to know for what input does my code gives Wrong Answer.I Will definitely try different approach to solve this question.

(20 May, 10:04) rdfan193★
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:

×727
×18

question asked: 18 May, 23:49

question was seen: 245 times

last updated: 20 May, 10:04