Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Distribution of Toys
Description There are Input There are multiple test cases. Output For each test case output the answer modulo 9973 in a separate line. Output 0 if the distribution is impossible. Sample Input 1 4 2 2 Sample Output 3 Hint The classes are considered identical. So the 3 ways are {{1, 2}, {3, 4}}, {{1, 3}, {2, 4}}, {{1, 4}, {2, 3}} Source POJ Founder Monthly Contest – 2008.06.29, Huang Jinsong |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator