ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1280. Topological Sorting

Weak Dataset
Posted by Saifullah Talukder 25 Jul 2017 14:16
I think the dataset for this problem is weak. I got AC without checking for cycles.

Input:
3 3
1 3
3 2
2 1
1 3 2
Correct output:
NO

But my code ( http://ideone.com/ZljGZ5 ) returns YES and it got Accepted.

Edited by author 25.07.2017 14:17

Edited by author 25.07.2017 14:18