source
int64
2
2
difficulty
int64
7
25
name
stringlengths
9
60
description
stringlengths
164
7.12k
public_tests
dict
private_tests
dict
cf_rating
int64
0
3.5k
cf_points
float64
0
4k
2
9
690_C1. Brain Network (easy)
One particularly well-known fact about zombies is that they move and think terribly slowly. While we still don't know why their movements are so sluggish, the problem of laggy thinking has been recently resolved. It turns out that the reason is not (as previously suspected) any kind of brain defect – it's the opposite!...
{ "input": [ "6 5\n1 2\n2 3\n3 4\n4 5\n3 6\n", "4 4\n1 2\n2 3\n3 1\n4 1\n" ], "output": [ "yes\n", "no\n" ] }
{ "input": [ "10 9\n2 3\n6 8\n10 1\n1 8\n6 7\n8 7\n10 5\n7 10\n2 5\n", "2 1\n1 2\n", "3 2\n1 2\n2 3\n", "10 9\n6 5\n9 2\n4 7\n2 3\n7 3\n3 4\n10 6\n1 2\n5 8\n", "8 7\n6 2\n1 5\n4 8\n4 7\n6 7\n8 3\n8 1\n", "3 3\n2 1\n1 3\n3 2\n", "10 9\n3 2\n4 1\n6 1\n7 1\n9 2\n6 9\n5 2\n7 9\n3 7\n", "20...
1,300
0