The time limit is too tight: in c just reading the input by scanf:
test 8 Execution time: 0.09s
test 9 Time limit exceeded
test 10 Time limit exceeded
And the time limit is 0.1 sec., this is too small in c.
And I don't understand the problem. Currently my code gives 4 for the sample input. For the 10 tests: 6 AC, 2 WA, 2 TLE. From the problem statement:
"find out how many Msongwa Tuvians won't talk to him in the worst-case scenario."
"maximum possible number of Msongwa Tuevians which heard about Meštar's mistake"
It's a contradiction, that's two different number in general.
test 8 Execution time: 0.09s
test 9 Time limit exceeded
test 10 Time limit exceeded
And the time limit is 0.1 sec., this is too small in c.
And I don't understand the problem. Currently my code gives 4 for the sample input. For the 10 tests: 6 AC, 2 WA, 2 TLE. From the problem statement:
"find out how many Msongwa Tuvians won't talk to him in the worst-case scenario."
"maximum possible number of Msongwa Tuevians which heard about Meštar's mistake"
It's a contradiction, that's two different number in general.