codeforces 37 E. Trial for Chief【spfa】

NoSuchKey