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

×

help in string and graphs..

i have tried the same thing as provided in the editorial but still getting WA....can anyone please look into my code?

https://www.codechef.com/viewsolution/15030703

asked 19 Aug '17, 22:04

pk301's gravatar image

2★pk301
62710
accept rate: 16%


There you go, the next TC-

Input
1
3 5
0 1
0 2
1 2
1 3
2 3
Your output
-1
Correct Output
1 2 1
link

answered 20 Aug '17, 10:49

vijju123's gravatar image

5★vijju123 ♦♦
15.5k12066
accept rate: 18%

thank u very much...........you made my day!! thanks a lot!!

(20 Aug '17, 11:57) pk3012★

Hey dear! Please dont use award point feature, its already enough to just accept the answer. Award point feature reduces your karma, which is bad :(

(20 Aug '17, 12:01) vijju123 ♦♦5★
1

actually i didn't know this ....but it's ok you deserves it :)

(20 Aug '17, 15:26) pk3012★

Your are printing wrong output when sequence is possible.

Input
1
3 4
0 1
0 2
1 2
2 3
Your Output
-1
Correct Output
1 2 2
link

answered 19 Aug '17, 22:14

vijju123's gravatar image

5★vijju123 ♦♦
15.5k12066
accept rate: 18%

@vijju123 sorry for disturbing you again....but i am still getting WA.. (:

https://www.codechef.com/viewsolution/15033392

(20 Aug '17, 06:43) pk3012★
1

I will debug it after breakfast :) . You can also refer to my soln I shared at editorial. Might help you :)

(20 Aug '17, 09:08) vijju123 ♦♦5★
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:

×241
×193

question asked: 19 Aug '17, 22:04

question was seen: 193 times

last updated: 20 Aug '17, 15:26