![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
Rocky0429
我愿能朝着太阳生长,做一个温暖的人。
展开
-
POJ 1068-Parencodings(模拟)
ParencodingsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 20444 Accepted: 12303DescriptionLet S = s1 s2...s2n be a well-formed string of parentheses原创 2015-01-07 18:40:12 · 1108 阅读 · 0 评论 -
POJ 2996-Help Me with the Game(模拟)
题目地址:POJ 2996 题意:给你一个棋盘,白棋用大写字母表示,黑棋用小写字母表示。让你按照K,Q,R,B,N,P的方式输出棋子,K,Q,R,B,N输出的格式为字母+位置,P输出的格式仅为位置。白棋的位置输出方式是列由大到小,行由小到大。黑棋的位置输出方式是列和行都是由小到大。#include <stdio.h>#include <math.h>#include <string.h>#i原创 2015-08-04 18:15:49 · 2012 阅读 · 0 评论 -
POJ 3087-Shuffle'm Up(map+模拟)
题目地址:POJ 3087 题意:已知两堆牌数均为n的纸牌堆a和b的初始状态, 按给定规则能将他们相互交叉组合成一堆牌str,再将str的最底下的n张牌归为a,最顶的n张牌归为b,依此循环下去。现在输入a和b的初始状态 以及 预想的最终状态c,问a, b经过多少次洗牌之后,最终能达到状态c,若永远不可能相同,则输出”-1”。 思路:用map记录一下当前str出现的状态,如果当前的str在前面出现原创 2015-08-16 16:25:16 · 1520 阅读 · 0 评论 -
POJ 1035-Spell checker(字符串)
题目地址:POJ 1035 题意:输入一部字典,输入若干单词。 若某个单词能在字典中找到,则输出corret;若某个单词能通过 变换 或 删除 或 添加一个字符后,在字典中找得到,则输出这些单词,输出顺序根据 输入的那部字典的字典序;若某个单词无论操作与否都无法在字典中找得到,则输出空。 思路:关于完全匹配的就直接输出就好,解题关键在不完全匹配的情况:比较时我们先算两个单词长度差之差,有三种情原创 2015-08-15 12:45:18 · 1768 阅读 · 0 评论 -
HDU 5387(2015多校8)-Clock(模拟)
题目地址:HDU 5387 题意:给你一个格式为hh:mm:ss的时间,问时针与分针、时针与秒针、分针与秒针之间夹角的度数是多少,若夹角度数不是整数,则输出A/B最简分数形式。 思路:每秒钟,分针走是0.1°,时针走(1/120)°;每分钟,时针走0.5°。所以对于时针的角度来说总共走动了h*30+m*0.5+s/120,对于分针的角度来说总共走掉了m*6+s*0.1,对于秒针来说,总共走动了s原创 2015-08-13 20:50:41 · 1282 阅读 · 0 评论 -
HDU 5373(2015多校7)-The shortest problem(模拟%11)
题目地址:HDU 5373 题意:给你一个数n和操作次数t,每次操作将n的各位数之和求出来放在n的末尾形成新的n,问t次操作后得到的n是否可以被11整除。 思路:就是简单的模拟一下乱搞。额,对于%11有一个性质,当一个数的奇数位之和与偶数位之和的差的绝对值能被11整除,那么该数就可以被11整除。#include <stdio.h>#include <math.h>#include <stri原创 2015-08-12 11:21:37 · 1211 阅读 · 0 评论 -
Codeforces Round #317 [AimFund Thanks-Round] (Div. 2)(A,B)
A题: 题目地址:Arrays 题意:有两个非递减序列的数组A,B,从A数组中选择k个数,B数组中选择m个数,是否存在A数组选择的k个数小于任意B数组选择的m个数。 思路:选择A数组最后一个数和B数组的第nb-m个数相比较即可。#include <stdio.h>#include <math.h>#include <string.h>#include <stdlib.h>#includ原创 2015-08-23 13:47:07 · 636 阅读 · 0 评论 -
SDUT 2162-The Android University ACM Team Selection Contest(模拟)
The Android University ACM Team Selection ContestTime Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^题目描述 Now it's 20000 A.D., and the androids also participate in the ACM Int原创 2015-04-01 19:43:31 · 1237 阅读 · 0 评论 -
UVA 10815-Andy's First Dictionary(字符串模拟+排序+重复删除||STL-set)
Andy's First DictionaryTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionProblem B: Andy's First DictionaryTime li原创 2014-12-27 11:47:33 · 1665 阅读 · 0 评论 -
UVA 10010- Where's Waldorf?(八方向寻找字符串)
Where's Waldorf?Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit StatusDescription Where's Waldorf? Given a m by n grid of lett原创 2015-01-02 16:40:17 · 1504 阅读 · 0 评论 -
UVA 10115-Automatic Editing(运用字符串函数对字符串进行替换)
Automatic EditingTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionProblem E: Automatic EditingSource file:autoedit.{c,原创 2014-12-29 13:16:37 · 1408 阅读 · 0 评论 -
UVA 409-Excuses, Excuses!(模拟)
Excuses, Excuses!Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit StatusDescription Excuses, Excuses! Judge Ito is having a pr原创 2014-12-28 12:51:15 · 1493 阅读 · 0 评论 -
UVA 10878-Decode the tape(模拟)
Decode the tapeTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit StatusDescription "Machines take me by surprise with great frequency."Al原创 2014-12-26 00:45:11 · 1431 阅读 · 0 评论 -
UVA 401-Palindromes(模拟)
PalindromesTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionA regular palindrome is a string of numbers or letters that is the same for原创 2014-12-07 22:43:23 · 1240 阅读 · 0 评论 -
爱上CF
爱上CFTime Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^题目描述CF,codeforces不是Crossfire。身为一个Acmer,RE大神与Soaring大神最喜欢做每五天一次的CF,从11:30到1:30,然后和逗比学长们一起等着跑数据等到两点半,然后再一起嘲笑一坨学长和柴爷,实在是人生一大快事。但原创 2014-06-10 20:54:26 · 1179 阅读 · 0 评论 -
POJ 2632-Crashing Robots(模拟)
Crashing RobotsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8027 Accepted: 3485DescriptionIn a modernized warehouse, robots are used to fetch the g原创 2015-01-10 16:03:11 · 1181 阅读 · 0 评论 -
POJ 1573-Robot Motion(模拟)
Robot MotionTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 10968 Accepted: 5319DescriptionA robot has been programmed to follow the instructions原创 2015-01-11 09:04:52 · 1214 阅读 · 0 评论 -
POJ 2993-Emag eht htiw Em Pleh(模拟)
题目地址:POJ 2993 这道题POJ 2996的逆推#include <stdio.h>#include <math.h>#include <string.h>#include <stdlib.h>#include <iostream>#include <sstream>#include <algorithm>#include <set>#include <queue>#in原创 2015-08-04 19:00:47 · 1558 阅读 · 0 评论