Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

felipezeiser's blog

By felipezeiser, history, 7 years ago, In English

Hello,

I am having problems with this problem ;(

https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2499

Follow my implementation, I'm using kosaraju, I believe I'm right but you're escaping some test case.

Code: http://ideone.com/ifMknd

  • Vote: I like it
  • +3
  • Vote: I do not like it

| Write comment?
»
7 years ago, # |
Rev. 4   Vote: I like it 0 Vote: I do not like it

Try this input:

1

5 6

1 2

2 1

4 5

5 4

3 5

5 2

expected output : 1

your output : 2