模拟题
文章平均质量分 84
zezzezzez
这个作者很懒,什么都没留下…
展开
-
UVA - 12291 Polyomino Composer (模拟题)
题意:给出一个n*n的大图形和一个小m*m图形,看大图中的‘*’的图形能不能由小图'*'的图形构成,图形只能平移,不能反转,旋转。要考虑一些点,模拟不难第一点:我们先判断大图和小图中'*'的个数,大图的个数不是小图的二倍就不行。第二点:我们可以先找出一个特殊点比如最左上的点,当然坐上没有点就最左边,我们从这种特殊点用小图形开始消除大图形,再找的过程中记得如果小图形中的'*'在大图中的相应位置并没有...原创 2018-04-06 19:49:15 · 155 阅读 · 0 评论 -
51Nod - 1770 数数字
统计一下 aaa ⋯ aaan个a × baaa ⋯ aaa⏟n个a × b 的结果里面有多少个数字d,a,b,d均为一位数。样例解释:3333333333*3=9999999999,里面有10个9。Input多组测试数据。 第一行有一个整数T,表示测试数据的数目。(1≤T≤5000) 接下来有T行,每一行表示一组测试数据,有4个整数a,b,d,n。 (1≤a,b≤9,...原创 2018-04-06 19:53:41 · 165 阅读 · 0 评论 -
zoj3939(打表,基姆拉尔森计算公式,计算某天是星期几的方法)
Edward, the headmaster of the Marjar University, is very busy every day and always forgets the date.There was one day Edward suddenly found that if Monday was the 1st, 11th or 21st day of that month, ...原创 2018-04-30 10:58:21 · 295 阅读 · 0 评论 -
HDU - 4452
Problem DescriptionRabbit Tom and rabbit Jerry are running in a field. The field is an N×N grid. Tom starts from the up-left cell and Jerry starts from the down-right cell. The coordinate of the up-le...原创 2018-05-07 09:56:39 · 225 阅读 · 0 评论