
模拟
Tizzii
这个作者很懒,什么都没留下…
展开
-
CodeForces 1301D Time to Run 模拟
一、内容Bashar was practicing for the national programming contest. Because of sitting too much in front of the computer without doing physical movements and eating a lot Bashar became much fatter. Basha...原创 2020-02-14 20:02:49 · 632 阅读 · 0 评论 -
Shuffle'm Up POJ - 3087 模拟
一、内容题意:给定2个字符串s1,s2,将2个字符串进行重组成S,规则是S2最下面拿一个,S1最下面拿1个,直到所有块都用完。二、思路用map记录下S串结果,若以前访问过这个串代表不可能有结果直接返回-1。然后就是模拟重组串的过程。三、代码#include <cstdio>#include <iostream>#include <cstring&g...原创 2019-10-10 11:34:52 · 641 阅读 · 0 评论