acm
文章平均质量分 80
gogocarryon
这个作者很懒,什么都没留下…
展开
-
【编程札记】Problem 1143 - Part-time Job
Description Snoopy lost his wallet, but he is afraid to tell his family, so he decided to do a part-time job to earn money in weekends. He is selling washing machines in a big market, he will get原创 2013-03-23 17:56:20 · 1017 阅读 · 0 评论 -
部分acm题目的解题思路(转)
Problem 1346 - Exchange 用棋盘多项式和数论中的扩展欧几里德来做. 根据题意可以构造一个棋盘,用阴影代表禁区,可得到禁区都是分开的正方形n*n..n*n正方形小格子禁区的棋盘多项式为 f(n)=,m[110]存各学校的人数,n表示学校数,总人数为s,那么大棋盘多项式为f[m[0]]*f[m[1]]*...*f[m[n-1]];然后用一个数组xishu[10001]存多项转载 2013-03-23 18:08:38 · 3838 阅读 · 0 评论