problem : TRUEDARE Problem - CodeChef
my solution to the problem: CodeChef: Practical coding for everyone
the logic i used:-
if(ts>tr) or if(ds>dr)
i put the value of flag to 0 which indicates that shyam will win( since he can ask some things that ram cannot do) (flag being 1 indicates that ram will win)
if that if case fails, i used linearsearch function to search every true value that shyam can ask is present in the tr array or not ( the array containing the tasks ram can do)
same logic with dare array.
the OUTPUT seems to be correct when i run it on ide of codechef but it still says WA ???
thank you for your help guys