模拟
文章平均质量分 82
Edwardzcn
这个作者很懒,什么都没留下…
展开
-
2018.1.21【CodeForces - 825B】解题报告(模拟,五子棋)
B. Five-In-a-Row time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Alice and Bob play 5-in-a-row game. They ha原创 2018-01-22 17:49:51 · 266 阅读 · 0 评论 -
2018.2.1【 UVA-11995 】解题报告(STL,数据结构,模拟)
I Can Guess the Data Structure! There is a bag-like data structure, supporting two operations: 1 x Throw an element x into the bag. 2 Take out an element from the bag. Given a sequen原创 2018-02-01 11:07:07 · 188 阅读 · 0 评论 -
2018.2.4【 CodeForces - 831A 】解题报告(模拟)
A. Unimodal Array time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Array of integers is unimodal, if: it原创 2018-02-04 18:03:44 · 289 阅读 · 0 评论 -
2018.2.28【 UVa - 227 】解题报告(紫书练习题,模拟,输出格式)
【题目链接】UVa:点击打开链接 VJ:点击打开链接【题目大意】给你一个5*5的棋盘,被24个字母和1个空格填满。A、B、L、R分别表示空格向上向下向左向右移动的命令,给出初始棋盘,给出一段命令,求出最终棋盘的样子。【解题思路】注意空格在边界的情况,模拟棋盘移动,每一次命令交换空格与上下左右之一空格中的字母,有任一一条不合理的命令,便可以判断走法有问题。【解题代码】#include <c...原创 2018-02-28 01:30:32 · 296 阅读 · 0 评论