
模拟
文章平均质量分 79
寒江雪里独钓着的蓑笠翁
退役XCPCer,AI搬砖狗
展开
-
Codeforces - 834B. The Festive Evening - 思维、模拟
B. The Festive Evening 题目链接 分类:思维、模拟1.题意概述有A~Z的26个入口,现在有n位客人轮流从这些入口进入,同一时刻不会有超过一位客人进入,每个客人进固定的入口,一个入口在第一位客人来的时候打开,在最后一位客人进入之后关闭,一个入口如果是打开的就需要一个守卫,共有k个守卫,问是否存在某个时间段有某个入口开放但没有守卫?2.解题思路这题的实质就是给原创 2017-08-01 23:12:53 · 393 阅读 · 0 评论 -
CF - 794C. Naming Company - 贪心+排序+模拟+字符串处理
1.题目描述:C. Naming Companytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOleg the client and Igor the原创 2017-05-13 20:58:42 · 941 阅读 · 0 评论 -
CF - 794A. Bank Robbery - 模拟
1.题目描述:A. Bank Robberytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA robber has attempted to rob原创 2017-05-13 20:35:30 · 296 阅读 · 0 评论 -
CF - 549A. Face Detection - 暴力+模拟 - Mutual Training for Wannafly Union #7
1.题目描述:A. Face Detectiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe developers of Looksery ha原创 2017-04-04 10:30:48 · 408 阅读 · 0 评论 -
SPOJ - ADAQUEUE - Ada and Queue - 模拟+双端队列 - Mutual Training for Wannafly Union #7
1.题目描述:ADAQUEUE - Ada and Queue#queueAda the Ladybug has many things to do. She puts them into her queue. Anyway she is very indecisive, so sometime she uses the top, sometime the原创 2017-04-04 09:59:47 · 804 阅读 · 0 评论 -
SPOJ - ADALIST - Ada and List - 模拟+STL容器 - Mutual Training for Wannafly Union #7
1.题目描述:ADALIST - Ada and List#tree #datastructuresAda the Ladybug has a TODO-list (containing only numbers - for simplicity). She is still doing something, so she sometimes erases原创 2017-04-04 09:50:38 · 737 阅读 · 0 评论 -
CF - 785A. Anton and Polyhedrons - 模拟
1.题目描述:A. Anton and Polyhedronstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnton's favourite geo原创 2017-03-16 19:24:42 · 245 阅读 · 0 评论 -
CF - 784C. INTERCALC - 瞎猜
1.题目描述:C. INTERCALCtime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputDO YOU EXPECT ME TO FIND原创 2017-04-02 12:48:37 · 351 阅读 · 0 评论 -
CF - 789B. Masha and geometric depression - 暴力+模拟/思维
1.题目描述:B. Masha and geometric depressiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMasha really原创 2017-04-02 12:37:46 · 683 阅读 · 0 评论 -
CF - 789A. Anastasia and pebbles - 贪心+模拟
1.题目描述:A. Anastasia and pebblestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnastasia loves going原创 2017-04-02 12:32:35 · 430 阅读 · 0 评论 -
CF - 792B. Counting-out Rhyme - 模拟
2.中文题目描述:n 个孩子在玩一个游戏。 孩子们站成一圈,按照顺时针顺序分别被标号为 1 到 n。开始游戏时,第一个孩子成为领导。 游戏进行 k 轮。 在第 i 轮中,领导会从他顺时针方向下一个孩子开始数 ai 个孩子。最后数到的那个孩子出局,再下一个孩子成为新的领导。举个例子, 现在圈内还剩 [8, 10, 13, 14, 16] 4个孩子,领导编号为 13 , ai = 12原创 2017-04-02 12:26:09 · 431 阅读 · 0 评论 -
CF - 377A. Maze - dfs+模拟
1.题目描述:A. Mazetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPavel loves grid mazes. A gr原创 2017-03-15 18:52:47 · 281 阅读 · 0 评论 -
CF - 799A. Carrot Cakes - 暴力+模拟
1.题目描述:A. Carrot Cakestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn some game by Playrix it take原创 2017-05-24 18:07:08 · 488 阅读 · 0 评论 -
POJ2153 - Rank List - map模拟
1.题目描述:Li Ming is a good student. He always asks the teacher about his rank in his class after every exam, which makes the teacher very tired. So the teacher gives him the scores of all the stud原创 2017-05-15 18:11:18 · 318 阅读 · 0 评论 -
Codeforces - 834A. The Useless Toy - 模拟
A. The Useless Toy 题目链接 分类:模拟、map应用1.题意概述给你两个字符和旋转次数,问从第一个字符到第二个字符是通过顺时针还是逆时针旋转还是两种方向都行?2.解题思路考虑map映射4种状态,显然可以根据旋转的次数来确定它是否都能到达即可,具体细节参见代码。3.AC代码#include <bits/stdc++.h>using namespace std原创 2017-08-01 23:06:49 · 336 阅读 · 0 评论 -
Codeforces - 777A. Shell Game 思维或者模拟
1.题目描述:A. Shell Gametime limit per test0.5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBomboslav likes to look out of原创 2017-02-24 22:20:46 · 315 阅读 · 0 评论 -
Codeforces - 609C.Load Balancing 排序、模拟
1.题目描述:C. Load Balancingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn the school computer roo原创 2017-02-23 21:56:56 · 399 阅读 · 1 评论 -
Codeforces - 831B. Keyboard Layouts - 字符串、模拟
B. Keyboard Layouts 题目链接 分类:字符串、模拟1.题意概述给你26个字母的映射(均为小写),再给你一串长度不大于1000的字符串,要你输出它的映射结果。2.解题思路map直接存,注意的是大写变换以后还是大写,还有数字不需要映射!3.AC代码#include <bits/stdc++.h>#define INF 0x3f3f3f3f#define ma原创 2017-07-14 18:43:14 · 519 阅读 · 0 评论 -
Codeforces - 831A. Unimodal Array - 模拟
A. Unimodal Array 题目链接 分类:模拟1.题意概述给你n个数,定义它的 unimodal 特征满足:在开头严格单调递增之后维持连续片段之后严格单调递减并且单增和单减可能不同时出现或者都不出现,连续片段长度也可能为1,现在要你判断这n个数是否具有这样的特征?2.解题思路特征已经给出了,我们判断无非抓住几个特点: 平稳之前可以上升,平稳之后不能上升下降之后原创 2017-07-14 18:41:59 · 478 阅读 · 0 评论 -
CF - 812A. Sagheer and Crossroads - 模拟
1.题目描述:A. Sagheer and Crossroadstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSagheer is walking in原创 2017-06-05 21:58:05 · 476 阅读 · 0 评论 -
CF - 764A. Taymyr is calling you - 模拟
1.题目描述:A. Taymyr is calling youtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputComrade Dujikov is bus原创 2017-05-20 15:54:13 · 349 阅读 · 0 评论 -
CF - 808A. Lucky Year - 模拟
1.题目描述:A. Lucky Yeartime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputApart from having lots of holiday原创 2017-05-18 20:06:20 · 698 阅读 · 0 评论 -
CF - 807A. Is it rated? - 模拟
1.题目描述:A. Is it rated?time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIs it rated?Here it is. Th原创 2017-05-08 21:42:54 · 764 阅读 · 0 评论 -
CF - 807B. T-Shirt Hunt - 贪心+模拟
1.题目描述:B. T-Shirt Hunttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputNot so long ago the Codecraft-原创 2017-05-08 21:39:36 · 739 阅读 · 0 评论 -
北理2017校赛 - A.速度牛排 - 贪心
1.题目描述:A.速度牛排(红色)成绩0开启时间2017年05月14日 Sunday 09:30折扣0.8折扣时间2017年05月12日 Friday 19:50允许迟交是关闭时间2017年05月14日 Sunday 15:00题目描述食宝街有一家叫“速度牛排”的牛排原创 2017-05-16 18:57:23 · 497 阅读 · 0 评论 -
CF - 379A. New Year Candles - 模拟
1.题目描述:A. New Year Candlestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasily the Programmer loves原创 2017-03-15 18:49:28 · 609 阅读 · 0 评论 -
CF - 469A. I Wanna Be the Guy - 模拟
1.题目描述:A. I Wanna Be the Guytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a game called "I原创 2017-03-15 18:46:19 · 707 阅读 · 0 评论 -
CF - 489A. SwapSort - 模拟
1.题目描述:A. SwapSorttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this problem your goal is to sor原创 2017-03-15 18:29:04 · 239 阅读 · 0 评论 -
POJ2041 - Unreliable Message - 字符串+模拟
1.题目描述:Unreliable MessageTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 2202 Accepted: 1346DescriptionThe King of a little Kingdom on a little原创 2017-03-02 22:49:20 · 368 阅读 · 0 评论 -
HDU5920 - Ugly Problem dfs+字符串+模拟
1.题目描述:Ugly ProblemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 985 Accepted Submission(s): 347Special JudgeProblem Desc原创 2017-03-01 21:15:34 · 247 阅读 · 0 评论 -
CF - 472C. Design Tutorial: Make It Nondeterministic 贪心+字符串+模拟
1.题目描述:C. Design Tutorial: Make It Nondeterministictime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA原创 2017-03-01 20:14:40 · 359 阅读 · 0 评论 -
CFGym - 100712C.Street Lamps 贪心+模拟
1.题目描述:C. Street LampsBahosain is walking in a street of Nblocks. Each block is either empty or has one lamp. If there is a lamp in ablock, it will light it’s block and the direct adjacent blocks原创 2017-02-28 19:38:36 · 1044 阅读 · 0 评论 -
CF - 735A. Ostap and Grasshopper 模拟
1.题目描述:A. Ostap and Grasshoppertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOn the way to Rio de原创 2017-02-28 19:32:04 · 290 阅读 · 0 评论 -
CF - 676B. Pyramid of Glasses 模拟
1.题目描述:B. Pyramid of Glassestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMary has just graduated f原创 2017-02-28 19:27:21 · 330 阅读 · 0 评论 -
CF - 451B. Sort the Array 排序+模拟
1.题目描述:B. Sort the Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBeing a programmer, you like原创 2017-02-28 18:58:07 · 427 阅读 · 0 评论 -
CF - 754B. Ilya and tic-tac-toe game 模拟+暴力
1.题目描述:B. Ilya and tic-tac-toe gametime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIlya is原创 2017-02-28 18:43:48 · 328 阅读 · 0 评论 -
CF - 652A. Gabriel and Caterpillar 模拟+思维
1.题目描述:A. Gabriel and Caterpillartime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe 9-th g原创 2017-02-28 18:39:02 · 484 阅读 · 0 评论 -
CF - 752B. Santa Claus and Keyboard Check 贪心+字符串
1.题目描述:B. Santa Claus and Keyboard Checktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSa原创 2017-02-28 18:22:31 · 374 阅读 · 0 评论 -
CF - 746B. Decoding 字符串模拟
1.题目描述:B. Decodingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp is mad about coding, that原创 2017-02-28 18:19:05 · 318 阅读 · 0 评论 -
HDU5414 CRB and String 字符串+模拟+思维
1.题目描述:CRB and StringTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2262 Accepted Submission(s): 698Problem Descri原创 2017-02-24 10:44:30 · 352 阅读 · 0 评论