Gameshow constraints

1 view
Skip to first unread message

Gyula

unread,
Jul 21, 2010, 3:01:16 AM7/21/10
to
I suppose that the following is not intended to be legal solution.
int jacksturn(int C){
return jillsturn(K);
}
int jillsturn(int C){
return (C==L)? 3 : 4;
}
(Where K is the secret number of Jack, L is the secret number of Jill,
stored in static local
variables.)

To exclude this case, it is not enough to prohibit shared variables,
file access and network
access.
Function call between Jack's module and Jill's module must be
prohibited as well.
More precisely, the implementation of jackstart and jacksturn can not
call any function
implemented in Jill's module, and conversely.

Gordon V. Cormack

unread,
Jul 21, 2010, 5:14:48 PM7/21/10
to
As the task statement says, "Jack and Jill must
communicate only through the specified interface."
Reply all
Reply to author
Forward
0 new messages