
模拟
文章平均质量分 81
罗侯
天选程序员 10.24生日
tencent -> bytedance -> kuaishou -> alibaba
展开
-
HDOJ2117 简单模拟题
Just a Numble Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3581 Accepted Submission(s): 1797 Problem Description Now give you原创 2017-08-15 20:52:32 · 405 阅读 · 0 评论 -
HDOJ3101 LA4226 The Heart of the Country 简单模拟
The Heart of the Country Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 299 Accepted Submission(s): 99 Problem Description The原创 2017-10-28 07:49:45 · 307 阅读 · 0 评论 -
Codeforces 911E 简单模拟
题意:通过栈输出1到n的一组排列,要求字典序最大。题目给出了前k个数,若无解输出-1。 分析:模拟... 好像没啥好说的吧... 代码如下: #include #include #include using namespace std; const int maxn = 200000+10; int n,k,cnt,mx; int a[maxn]; stacks; bool原创 2018-01-02 22:03:05 · 380 阅读 · 0 评论