![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
文章平均质量分 86
nudt_oys
An AC a day,keeps WA away~
展开
-
CCF CSP 2017年3月第2题 学生排队(STL运用)
问题描述试题编号:201703-2试题名称:学生排队时间限制:1.0s内存限制:256.0MB问题描述:问题描述 体育老师小明要将自己班上的学生按顺序排队。他首先让学生按学号从小到大的顺序排成一排,学号小的排在前面,然后进行多次调整。一次调整小明可能让一位同学出队,原创 2017-10-26 22:52:21 · 563 阅读 · 0 评论 -
CCF CSP 2015年12月第3题 画图 (模拟+DFS或BFS)
问题描述试题编号:201512-3试题名称:画图时间限制:1.0s内存限制:256.0MB问题描述:问题描述 用 ASCII 字符来画图是一件有趣的事情,并形成了一门被称为 ASCII Art 的艺术。例如,下图是用 ASCII 字符画出来的 CSPRO 字样。原创 2017-11-11 18:44:13 · 825 阅读 · 0 评论 -
CCF CSP 2016年9月第3题 炉石传说(模拟)
问题描述试题编号:201609-3试题名称:炉石传说时间限制:1.0s内存限制:256.0MB问题描述:问题描述 《炉石传说:魔兽英雄传》(Hearthstone: Heroes of Warcraft,简称炉石传说)是暴雪娱乐开发的一款集换式卡牌游戏(如下图所示)原创 2017-11-01 20:27:19 · 1235 阅读 · 0 评论 -
LeetCode 146 LRU Cache(list+unordered_map实现LRU缓存算法)
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put.get(key) - Get the value (will always be positive) of the key i原创 2017-10-28 12:17:53 · 938 阅读 · 0 评论 -
CSUOJ 1898 复盘拉火车(栈+队列模拟)
Description小GJ和小XS没事做用扑克牌玩起了小时候的拉火车游戏。规则如下,GJ和XS交替依次把手中的牌放到桌面上,由于GJ年长,所以他总是先放。桌面上会构成一个新的序列,当这个序列中新放入的点数与以前存在的某个点数重复的时候,这两张重复的牌和中间的牌就依次全部放回所放牌一方的序列尾部。 例如桌面上有牌A 10 2 3 5此时GJ放下一张2则桌面上剩下A 10而2 3 5 2这个序列原创 2017-04-25 11:10:52 · 593 阅读 · 0 评论 -
LeetCode 412 Fizz Buzz(字符串模拟)
Write a program that outputs the string representation of numbers from 1 to n.But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”. Fo原创 2017-04-05 23:04:43 · 554 阅读 · 0 评论 -
CSUOJ 1005 Binary Search Tree analog(二叉搜索树模拟)
DescriptionBinary Search Tree, abbreviated as BST, is a kind of binary tree maintains the following property:each node has a Key value, which can be used to compare with each other.For every nod原创 2017-04-05 17:23:11 · 873 阅读 · 0 评论 -
POJ 2028 When Can We Meet?(模拟)
When Can We Meet?DescriptionThe ICPC committee would like to have its meeting as soon as possible to address every little issue of the next contest. However, members of the committee are s原创 2016-07-23 23:49:46 · 432 阅读 · 0 评论 -
CodeForces 1B Spreadsheets(模拟)
B. SpreadsheetsIn the popular spreadsheets systems (for example, in Excel) the following numeration of columns is used. The first column has number A, the second — number B, etc. till colu原创 2016-07-21 16:17:12 · 537 阅读 · 0 评论 -
POJ 1666 Candy Sharing Game(模拟)
Candy Sharing GameDescriptionA number of students sit in a circle facing their teacher in the center. Each student initially has an even number of pieces of candy. When the teacher blows a原创 2016-07-16 17:09:50 · 318 阅读 · 0 评论 -
CCF CSP 2014年12月第2题 Z字型扫描(模拟水题)
问题描述试题编号:201412-2试题名称:Z字形扫描时间限制:2.0s内存限制:256.0MB问题描述:问题描述 在图像编码的算法中,需要将一个给定的方形矩阵进行Z字形扫描(Zigzag Scan)。给定一个n×n的矩阵,Z字形扫描的过程如下图所示: 对原创 2017-12-02 10:51:17 · 803 阅读 · 0 评论