2017 Xian ACM Summer Training Warm-up Exercise 3

B题Bigger is Better :https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1783题意:用有限火柴棍拼...

2017-07-14 19:57:41

阅读数:872

评论数:0

XMAX - XOR Maximization

Given a set of integers S = { a1, a2, a3, … a|S| }, we define a function X on S as follows: X( S ) = a1 ^ a2 ^ a3 ^ … ^ a|S|. (^ stands for bitwise...

2017-07-10 09:37:45

阅读数:177

评论数:0

2017 Xian ACM Summer Training Warm-up Exercise 1

A题Chocolatehttp://poj.org/problem?id=1322题意:c种巧克力,每种数量无穷大,取出n个放桌上,如果出现同种巧克力的就必须两个一起吃掉,即桌面上同种巧克力只能有0个或者1个。问取出n个后剩余m种巧克力的概率。tip:方程比较好想,就是dp[i][j]表示一共取了...

2017-07-10 09:21:27

阅读数:140

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭