![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
mmk27
这个作者很懒,什么都没留下…
展开
-
HDU - 6215 Brute Force Sorting 模拟链表
Beerus needs to sort an array of N integers. Algorithms are not Beerus's strength. Destruction is what he excels. He can destroy all unsorted numbers in the array simultaneously. A number A[i] of the ...原创 2018-09-13 20:38:38 · 113 阅读 · 0 评论 -
2019牛客暑期多校训练营(第十场)B、Coffee Chicken 思维模拟
链接:https://ac.nowcoder.com/acm/contest/890/B来源:牛客网Coffee Chicken时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 524288K,其他语言1048576K64bit IO Format: %lld题目描述Dr. JYY has just created the Coffee Chicken str...原创 2019-08-17 21:14:21 · 197 阅读 · 0 评论 -
吉首大学2019年程序设计竞赛(重现赛)
题目链接:https://ac.nowcoder.com/acm/contest/992#question链接:https://ac.nowcoder.com/acm/contest/992/A来源:牛客网A、SARS病毒时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32768K,其他语言65536K64bit IO Format: %lld题目描述目...原创 2019-07-14 17:12:44 · 924 阅读 · 0 评论 -
2019 计蒜之道 复赛 个性化评测系统 模拟
题目链接:https://nanti.jisuanke.com/t/39612题解:枚举每一张牌,然后再枚举每一个对子,判断的时候,按顺序,若数量大于等于3个,就按刻子算,否则就按顺子算#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e5+10;int a[12]...原创 2019-06-16 18:46:56 · 229 阅读 · 0 评论 -
Robot Cleaner I 暴力模拟+标记剪枝
题目链接:点击查看题意:按照题意进行即可题解:注意标记,vis[i][j] i表示对坐标的哈希,j表示当前计算的x,值为之前得到多少汽油了,因为如果再次经过这个位置,两次经过的中间得到多汽油,并且改变了图中的2,所以要继续走,知道,走到一个位置,汽油数不增加,然后就是注意一些剪枝#include<bits/stdc++.h>using namespace std;ty...原创 2019-04-14 19:51:40 · 414 阅读 · 0 评论 -
CodeForces - 546C Soldier and Cards 模拟
Two bored soldiers are playing card war. Their card deck consists of exactly ncards, numbered from 1 to n, all values are different. They divide cards between them in some manner, it's possible that t...原创 2019-02-27 14:06:23 · 133 阅读 · 0 评论 -
POJ - 4044 Score Sequence 模拟+贪心
题目链接:点击查看题意:给出两个班级的成绩,先按降序排序,去重。然后求连续的最长公共子序列。输出时,先输出最长公共子序列,然后按个位数字递增的顺序输出,若各位数字一样就按成绩递增。题解:模拟写就可以了#include<iostream>#include<cstdio>#include<algorithm>using namespace std...原创 2018-12-23 22:15:57 · 121 阅读 · 0 评论 -
Gym - 101972G Minimax 预处理+枚举
You are given a grid consisting of n rows each of which is dived into m columns. The rows are numbered from 1 to n from top to bottom, and the columns are numbered from 1 to m from left to right. Each...原创 2018-12-16 13:01:32 · 378 阅读 · 0 评论 -
Gym - 101972F I'm Bored! 模拟暴力
Being a judge is not always an interesting job! For example, it is very boring to wait for the first submission in the contest. So, judges used to entertain themselves using the "I'm Bored" tab in the...原创 2018-12-16 11:48:35 · 372 阅读 · 0 评论 -
HihoCoder - 1110 Regular Expression 规则表达
Your task is to judge whether the input is a legal regular expression. A regular expression is defined as follow: 1: 0 and 1 are both regular expressions. 2: If P and Q are regular expressions, ...原创 2018-12-03 20:10:19 · 133 阅读 · 0 评论 -
ZOJ - 3962 Seven Segment Display dfs 模拟
A seven segment display, or seven segment indicator, is a form of electronic display device for displaying decimal numerals that is an alternative to the more complex dot matrix displays. Seven segmen...原创 2018-11-26 13:40:44 · 140 阅读 · 0 评论 -
ZOJ - 3879 Capture the Flag 模拟
In computer security, Capture the Flag (CTF) is a computer security competition. CTF contests are usually designed to serve as an educational exercise to give participants experience in securing a mac...原创 2018-11-29 11:17:57 · 181 阅读 · 0 评论 -
ZOJ - 4034 Mahjong Sorting
题意:给你一个有序的麻将序列,有三种牌面和一个白板。你有3*m个麻将,问幸运麻将有几种可能,幸运麻将应该放在最左端且不能影响给出序列的有序性。如果有白板的话,白板在幸运麻将的位置,如果幸运麻将在的话,在第一个。题意说完了,分类模拟一下就可以了, flag记录有无白板和位置#include<bits/stdc++.h>using namespace std;typedef ...原创 2018-11-18 16:14:04 · 249 阅读 · 0 评论 -
CodeForces - 266C Below the Diagonal 化为上三角形
You are given a square matrix consisting of n rows and n columns. We assume that the rows are numbered from 1 to n from top to bottom and the columns are numbered from 1 to n from left to right. Some ...原创 2018-11-14 20:15:07 · 166 阅读 · 0 评论 -
CodeForces - 260B Ancient Prophesy 模拟 水
A recently found Ancient Prophesy is believed to contain the exact Apocalypse date. The prophesy is a string that only consists of digits and characters "-".We'll say that some date is mentioned in ...原创 2018-11-12 15:38:51 · 191 阅读 · 0 评论 -
UVALive - 7511 Multiplication Table 暴力模拟
题意:给一个数字矩阵,?表示不确定的数字,问这个子矩阵是否可能存在于乘法表里题解:不要再傻傻的求解了,暴力一下因子就过了#include<iostream>#include<cstdio>#include<cmath>#include<cstring>using namespace std;typedef long long ll...原创 2018-11-02 13:13:46 · 163 阅读 · 0 评论 -
POJ - 1850 Code 组合数+模拟
Transmitting and memorizing information is a task that requires different coding systems for the best use of the available space. A well known system is that one where a number is associated to a char...原创 2018-11-06 22:09:48 · 123 阅读 · 0 评论 -
2019 沈阳网络赛 H. Texas hold'em Poker 模拟
题目链接:https://nanti.jisuanke.com/t/41408细心细心细心#include <bits/stdc++.h>using namespace std;const int N = 1e5 + 10;struct node { char name[15]; int id; int b[5];}p[N];int n;int a[10];...原创 2019-09-17 16:22:26 · 150 阅读 · 0 评论