Блог пользователя felipezeiser

Автор felipezeiser, история, 7 лет назад, По-английски

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

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
7 лет назад, # |
Rev. 4   Проголосовать: нравится 0 Проголосовать: не нравится

Try this input:

1

5 6

1 2

2 1

4 5

5 4

3 5

5 2

expected output : 1

your output : 2