[problem:1739C]In the problem[(this one)](https://codeforces.com/contest/1739/problem/C), when finding combinations(just learned them while solving this problem), we add previous values from n-2 function calling, like this<br/>↵
~~~~~<br/>↵
def calc(n):<br/>↵
if n == 2:<br/>↵
return [1, 0, 1]<br/>↵
a = calc(n — 2)<br/>↵
return [comb(n — 1, n // 2) + a[1], comb(n — 2, n // 2) + a[0], 1]#[alex win,boris win,draw]<br/>↵
~~~~~<br/>↵
↵
but why do we add up alex's winnings on n with boris's winnings during n-2? why does adding adding 1 players winnings with his losses with less cards make sense? Would appreciate a proper explanation from anyone. And is there something I need to study up on to get this? Thanks in advance.
~~~~~<br/>↵
def calc(n):<br/>↵
if n == 2:<br/>↵
return [1, 0, 1]<br/>↵
a = calc(n — 2)<br/>↵
return [comb(n — 1, n // 2) + a[1], comb(n — 2, n // 2) + a[0], 1]#[alex win,boris win,draw]<br/>↵
~~~~~<br/>↵
↵
but why do we add up alex's winnings on n with boris's winnings during n-2? why does adding adding 1 players winnings with his losses with less cards make sense? Would appreciate a proper explanation from anyone. And is there something I need to study up on to get this? Thanks in advance.