According to the report,Samuelwas alleged to have embezzled 104 million New Zua dollars ($3.15 million) in public funds, accepted bribes of about $9 million in a land purchase deal, and taken a kickback of $2.7 million from a construction project.
Although Samuel is a smart lawyer,he was still arrested due to his illegal actions.
Now Samuel has a question for you:If you are given the legislations of Zua,can you tell how many years he stay in the prison?
The legislations of Zua are supposed as the following few lines:
2 3 011 10 5 15 5 01101 1 10 10 100 31
Samuel was accused with 2 case(s),and he will stay in the prison for 5 year(s). Samuel was accused with 3 case(s),and he will stay in the prison for 20 year(s).
species of bugs. He assumes that they feature two different genders
and that they only interact with bugs of the opposite gender. In
his experiment, individual bugs and their interactions were easy to
identify, because numbers were printed on their
experiment supports his assumption of two genders with no
homosexual bugs or if it contains some bug interactions that
Each scenario starts with one line giving the number of bugs (at
least one, and up to 2000) and the number of interactions (up to
1000000) separated by a single space. In the following lines, each
interaction is given in the form of two distinct bug numbers
separated by a single space. Bugs are numbered consecutively
starting from one.
#i:”, where i is the number of the scenario starting at 1, followed
by one line saying either “No suspicious bugs found!” if the
experiment is consistent with his assumption about the bugs’ sexual
behavior, or “Suspicious bugs found!” if Professor Hopper’s
assumption is definitely wrong.
if f[x]=x then exit(x);
for i:=1 to n do
for i:=1 to m do
if find(x)=find(y) then
if (v[x]+v[y])and 1<>1 then
writeln('Suspicious bugs found!');
for j:=i+1 to m do
writeln('No suspicious bugs found!');
for i:=1 to t do