
模拟
文章平均质量分 66
_TCgogogo_
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 838 Push Dominoes (二点法,模拟)
There arendominoes in a line, and we place each domino vertically upright. In the beginning, we simultaneously push some of the dominoes either to the left or to the right.After each second, each domino that is falling to the left pushes the adjacent d..原创 2022-04-30 17:37:43 · 407 阅读 · 0 评论 -
LeetCode 59 Spiral Matrix II (模拟)
Given a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order.Example 1:Input: n = 3Output: [[1,2,3],[8,9,4],[7,6,5]]Example 2:Input: n = 1Output: [[1]]Constraints:1 <= n <= 20题目链接:https:/原创 2022-03-02 17:03:43 · 203 阅读 · 0 评论 -
LeetCode 1094 Car Pooling (模拟)
There is a car withcapacityempty seats. The vehicle only drives east (i.e., it cannot turn around and drive west).You are given the integercapacityand an arraytripswheretrips[i] = [numPassengersi, fromi, toi]indicates that theithtrip hasnumPas...原创 2022-02-24 21:23:23 · 261 阅读 · 0 评论 -
LeetCode 331 Verify Preorder Serialization of a Binary Tree (栈 模拟)
One way to serialize a binary tree is to usepreorder traversal. When we encounter a non-null node, we record the node's value. If it is a null node, we record using a sentinel value such as'#'.For example, the above binary tree can be serialized to t..原创 2022-01-30 19:49:09 · 836 阅读 · 0 评论 -
LeetCode 1106 Parsing A Boolean Expression (分治,模拟)
Return the result of evaluating a given booleanexpression, represented as a string.An expression can either be:"t", evaluating toTrue; "f", evaluating toFalse; "!(expr)", evaluating to the logical NOT of the inner expressionexpr; "&(expr1,ex...原创 2021-07-27 13:58:01 · 200 阅读 · 0 评论 -
NEUQOJ 1495 田鼠看热闹(Ⅰ)(枚举 + 模拟)
NEUQOJ 1495 田鼠看热闹(Ⅰ)(枚举 + 模拟)原创 2015-11-28 22:33:42 · 1135 阅读 · 0 评论 -
Codeforces 272C Dima and Staircase (线段树区间更新 或 线性扫)
Codeforces 272C Dima and Staircase (线段树区间更新 或 线性扫)原创 2015-11-28 10:13:50 · 1115 阅读 · 0 评论 -
HDU 5455 Fang Fang (水题 模拟)
HDU 5455 Fang Fang (水题 模拟)原创 2015-09-19 21:30:05 · 912 阅读 · 0 评论 -
HDU 5319 Painter (模拟 脑洞题)
HDU 5319 Painter (模拟 脑洞题)原创 2015-07-28 18:52:14 · 1633 阅读 · 0 评论 -
codeforces 496C Removing Columns (模拟,思维)
C. Removing Columnstime limit per test2 secondsmemory limit per test256 megabytesYou are given an n × m rectangular table consisting of lower case English letters. In one operation原创 2015-02-05 10:55:02 · 1186 阅读 · 0 评论 -
[Offer收割]编程练习赛2 hihocoder 1275 扫地机器人 (计算几何+模拟 比较烦)
[Offer收割]编程练习赛2 hihocoder 1275 扫地机器人 (计算几何+模拟 比较烦)原创 2016-03-14 11:47:03 · 2894 阅读 · 3 评论 -
hihocoder 1039 字符消除 (枚举+模拟)
hihocoder 1039 字符消除 (枚举+模拟)原创 2016-03-14 23:46:25 · 809 阅读 · 0 评论 -
hihocoder 1264 神奇字符串 (枚举+模拟)
hihocoder 1264 神奇字符串 (枚举+模拟)原创 2016-03-14 21:06:21 · 998 阅读 · 0 评论 -
FZU 2225 小茗的魔法阵 (小模拟)
FZU 2225 小茗的魔法阵 (小模拟)原创 2016-04-17 11:10:36 · 1158 阅读 · 0 评论 -
Codeforces 494A Treasure (思维 模拟)
Codeforces 494A Treasure (思维 模拟)原创 2016-07-10 22:29:21 · 765 阅读 · 0 评论 -
LeetCode 273 Integer to English Words
LeetCode 273 Integer to English Words原创 2016-08-24 10:11:45 · 828 阅读 · 0 评论 -
LeetCode 71 Simplify Path (栈)
LeetCode 71 Simplify Path (栈)原创 2017-07-04 19:49:21 · 785 阅读 · 0 评论 -
LeetCode 279 Perfect Squares (BFS 优化 or 数学)
Given a positive integern, find the least number of perfect square numbers (for example,1, 4, 9, 16, ...) which sum ton.Example 1:Input: n = 12Output: 3 Explanation: 12 = 4 + 4 + 4.Exampl...原创 2019-03-25 19:49:56 · 612 阅读 · 0 评论 -
蓝桥杯训练 十六进制转八进制 (小模拟)
蓝桥杯训练 十六进制转八进制 (小模拟)原创 2015-03-24 09:36:43 · 1160 阅读 · 0 评论 -
HDU 5191 Building Blocks (模拟)
HDU 5191 Building Blocks (模拟)原创 2015-03-22 11:15:45 · 1136 阅读 · 0 评论 -
HDU 4972 A simple dynamic programming problem
多校10第二题原创 2014-08-21 20:07:56 · 1286 阅读 · 0 评论 -
HDU 4970 Killing Monsters
Killing MonstersTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1041 Accepted Submission(s): 498 Problem DescriptionKingdom Rush is...原创 2014-08-21 22:49:23 · 1025 阅读 · 0 评论 -
POJ 1852 Ants
AntsTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 9659Accepted: 4268DescriptionAn army of ants walk on a horizontal pole of length l cm, each with原创 2014-08-11 19:10:30 · 830 阅读 · 0 评论 -
HDU 5163 Taking Bus
Taking Bus Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)原创 2015-01-24 22:37:09 · 945 阅读 · 0 评论 -
codeforce 509C (很有趣的贪心模拟构造)
C. Sums of Digitstime limit per test2 secondsmemory limit per test256 megabytesVasya had a strictly increasing sequence of positive integersa1, ...,an. Vasya used it to build a n原创 2015-02-02 10:46:38 · 1367 阅读 · 0 评论 -
codeforces 493C Vasya and Basketball (枚举+模拟+思维)
codeforces的思维模拟,很有意思原创 2015-02-07 22:01:41 · 1554 阅读 · 0 评论 -
HDU 5174 Ferries Wheel (暴力小模拟)
Ferries WheelTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 56 Accepted Submission(s): 29Problem Description The Ferries Wheel i原创 2015-02-14 21:21:49 · 1696 阅读 · 3 评论 -
HDU 5131 Song Jiang's rank list (14广州 排序 水题)
Song Jiang's rank listTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 392 Accepted Submission(s): 193Problem Description《Shui H原创 2015-03-01 16:21:48 · 959 阅读 · 0 评论 -
HDU 5112 A Curious Matt (14北京 排序 水题)
A Curious MattTime Limit: 2000/2000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 516 Accepted Submission(s): 267Problem DescriptionThere is a cu原创 2015-03-01 16:39:54 · 898 阅读 · 0 评论 -
HDU 5122 K.Bro Sorting (14北京 思维模拟)
K.Bro SortingTime Limit: 2000/2000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 520 Accepted Submission(s): 285Problem DescriptionMatt’s friend原创 2015-03-01 16:51:48 · 1817 阅读 · 0 评论 -
ZOJ 3818 Pretty Poem (暴力模拟 string(substr))
ZOJ 3818 Pretty Poem (暴力模拟 string(substr))原创 2015-03-01 17:19:25 · 1240 阅读 · 0 评论 -
CodeForces 388A Fox and Box Accumulation (模拟)
CodeForces 388A Fox and Box Accumulation (模拟)原创 2015-03-16 23:59:34 · 1195 阅读 · 0 评论 -
POJ 3295 Tautology (栈模拟)
POJ 3295 Tautology (栈模拟)原创 2015-03-21 17:08:49 · 1016 阅读 · 0 评论 -
HDU 4041 Eliminate Witches! (栈的模拟)
HDU 4041 Eliminate Witches! (栈的模拟)原创 2015-03-10 13:11:46 · 1014 阅读 · 0 评论 -
FZU 2152 文件系统 (小模拟)
FZU 2152 文件系统 (小模拟)原创 2015-03-21 17:13:42 · 998 阅读 · 0 评论 -
POJ 3279 Fliptile (二进制枚举+模拟)
POJ 3279 Fliptile (二进制枚举+模拟)原创 2015-03-21 19:46:57 · 1583 阅读 · 0 评论 -
HDU 4121 Xiangqi
象棋大模拟原创 2014-08-18 22:57:53 · 1112 阅读 · 0 评论