Description: Baidu programming questions
There are three types of animals in the food chain Description Animal Kingdom A, B, C, and three types of animal food chain constitutes an interesting ring. A eat B, B, to eat C, C eat A. The existing N animal, numbered 1-N. Each animal are A, B, C in a, but we do not know exactly what kind. Been used in two different ways to describe these the N animals constitute the food chain relationship: The first argument is the "XY" X and Y are similar. The second argument is that the "2 X Y", X eat Y. N animals, using the above two statements, one pick a say K words, K sentence some true, some false. When the sentence satisfies one of the following three words is a lie, otherwise, it is the truth. 1) words preceding Some true conflict, is lie 2) of the current, then X or Y is larger than N, that is, lies 3) The current then represents X eat X, is lie. Your task is the total number of (1 <= N <= 50,000), and K according to a given N words (0 <= K <= 10
To Search:
File list (Check if you may need any files):
baidu1
......\Debug
......\.....\baidu1.exe
......\.....\baidu1.ilk
......\.....\baidu1.pch
......\.....\baidu1.pdb
......\.....\main.exe
......\.....\main.ilk
......\.....\main.obj
......\.....\main.pch
......\.....\main.pdb
......\.....\vc60.idb
......\.....\vc60.pdb
......\baidu1.dsp
......\baidu1.dsw
......\baidu1.ncb
......\baidu1.opt
......\baidu1.plg
......\main.cpp
......\main.dsp
......\main.dsw
......\main.ncb
......\main.opt
......\main.plg
......\main.zip