Hi,
I don't understand what they're asking us to solve in the "emp" problem. I understand the knight and liar part, but i don't understand what does that have to do with the employee part
[quote="gianpaolo"]Hi,
I don't understand what they're asking us to solve in the "emp" problem. I understand the knight and liar part, but i don't understand what does that have to do with the employee part[/quote]
Each employee either knight or liar.
if an employee works more than another than does he/she earn more than another?
i got AC but i didnt understand the problem [:D]
I don't think so.
Hm...maybe I'm misreading something. The first fact shows the employees who work more and the second shows the employees who are paid more--so unless you always choose the lowest-paid, least-working employee, how would you know about those employees? But there's a good chance I'm just misreading it, I suppose.
EDIT: Nevermind, I found my mistake--I thought it meant that you randomly ask one person and he responds with the two statements. Sorry.
The main problem with this problem is the statement
The word them means the employees, not the things. So one should write it as
Yes, You're right. I've changed the problem description for better understanding.
I think the above statement should be deleted, as it gives out the solutions...
I have no idea, as how the problem is solved, but couldnt resist myself from trying the above solution..
@Mods/Admin please..
Post deleted.
Hello! Sorry, but test of this problem is definitely incorrect because my wrong code was accepted instead of WA. And then my right code was accepted.So I think test contains only cases where N == M (0 0, 1 1, 2 2, 3 3...)