
枚举
文章平均质量分 74
kzzhr
蒟蒻小小鸟
展开
-
USACO Section 1.3.6 Prime Cryptarithm
题目Prime CryptarithmThe following cryptarithm is a multiplication problem that can be solved by substituting digits from a specified set of N digits into the positions marked with *. If原创 2013-05-22 11:07:06 · 1105 阅读 · 0 评论 -
HDOJ 4152 ZZY’s Dilemma
题目:http://acm.hdu.edu.cn/showproblem.php?pid=4152队长大人给某菜鸟赛出的题,但是却让我傻了半天。裸暴力,由于数据弱,我直接用了位运算标记,其实这个题目用位运算一点优势都没有。# include # include int d[20]= {1},a[22][22],c[22],fn[22],n,m;int yes(){ fo原创 2013-06-27 02:38:45 · 1122 阅读 · 0 评论 -
USACO Section 1.4.3 The Clocks
很简单却容易被忽视的一个技巧The Clocks [ IOI'94 - Day 2 ]find a minimal sequence of moves to return all the dials to 12 o'clock. Nine different ways to turn the dials on the clocks are supplied via a table below; each way is called a move. Select for each move a numb原创 2013-11-28 16:37:01 · 1251 阅读 · 0 评论 -
用程序去判断每个人说话的真假 - 写给新手的枚举介绍
背景我们在以前的数学题中一定遇到过这样的问题:A说xxxx B说xxx C说xxx然后给一些条件,让你判断每个人说话的真假这个题目是这样的: 计算机学院准备组织院篮球赛,某班有ABCDE五个同学商量组队参加,他们在讨论谁来打前锋的时候发生了争执,于是他们请了另一个班的同学J当评委,五个人PK百米速度,谁的速度最快就由谁来当前锋,其实五个同学速度相当,比赛结束时,J让他们猜猜排名情况原创 2015-10-13 11:09:11 · 2155 阅读 · 0 评论