
模拟
Floraqiu
有志者事竟成,破釜沉舟,百二秦关终属楚。
苦心人天不负,卧薪尝胆,三千越甲可吞吴。
展开
-
CSUOJ-2092 Space Golf (物理模拟题)
CSUOJ-2092 Space Golf (物理模拟题)Time Limit: 1 Sec Memory Limit: 512 Mb Submitted: 79 Solved: 37 SpecialJudgeDescription You surely have never heard of this new planet surface explo...原创 2018-07-25 15:28:13 · 317 阅读 · 0 评论 -
【STL + 模拟】Ugly Numbers UVA - 136
【STL + 模拟】Ugly Numbers UVA - 136Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, … shows the first 11 ugly numbers. By convention, ...原创 2018-07-25 20:06:42 · 471 阅读 · 0 评论 -
【STL + 模拟】The Blocks Problem UVA - 101 【紫书例题】
【STL】The Blocks Problem UVA - 101 【紫书例题】Many areas of Computer Science use simple, abstract domains for both analytical and empirical studies. For example, an early AI study of planning and robotic...原创 2018-07-25 19:58:38 · 527 阅读 · 0 评论 -
【模拟 + 贪心】Bit String Reordering CSU - 2089
【模拟 + 贪心】Bit String Reordering CSU - 2089You have to reorder a given bit string as specified. The only operation allowed is swapping adjacent bit pairs. Please write a program that calculates the mi...原创 2018-07-25 19:21:15 · 326 阅读 · 0 评论 -
【模拟】Game Rank CSU - 2018 (打怪升级)
【模拟】Game Rank CSU - 2018 (打怪升级)Time limit 1000 ms Memory limit 131072 kB Source NCPC2016The gaming company Sandstorm is developing an online two player game. You have been asked to implem...原创 2018-07-25 17:32:46 · 510 阅读 · 0 评论 -
南华新生训练2017-最长回文子串
描述 给出一个长度为L(L<=1000)的字符串S;S由小写字母组成;求该字符串的最长回文子串的长度; 最长回文子串解释: wiki:https://zh.wikipedia.org/wiki/%E6%9C%80%E9%95%BF%E5%9B%9E%E6%96%87%E5%AD%90%E4%B8%B2; 比如: S=“abbcbca”的最长回文字串就是“cb原创 2017-11-12 22:09:45 · 283 阅读 · 0 评论 -
【模拟】noi-7804 找第一个只出现一次的字符
找第一个只出现一次的字符 总时间限制: 1000ms 内存限制: 65536kB 描述 给定一个只包含小写字母的字符串,请你找到第一个仅出现一次的字符。如果没有,输出no。 输入 一个字符串,长度小于100000。 输出 输出第一个仅出现一次的字符,若没有则输出no。 样例输入 abcabd 样例输出 c这个题比较容易出错的地方在于:原创 2017-09-10 16:14:24 · 802 阅读 · 0 评论 -
HDU-2037 今年暑假不AC
HDU-2037 今年暑假不AC Problem Description “今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%…” 确实如此,世界杯来了,球迷的节日也来了,估计很多ACMer也会抛开电脑,奔向电视了。 作为球迷,一定想看尽量多的完整的比赛,当然,作为新时代的好青年,你一定还会看一些其它的节原创 2017-09-11 17:11:52 · 356 阅读 · 0 评论 -
【字符串模拟】HDU- 2054 A == B ?(一定要注意陷阱)
A == B ? Problem Description Give you two numbers A and B, if A is equal to B, you should print “YES”, or print “NO”. Input each test case contains two numbers A and B. Output for原创 2017-09-12 12:22:52 · 472 阅读 · 0 评论 -
3_2 竖式问题
找出所有形如abc*de(三位数乘以两位数)的算式,使得在完整的竖式中,所有数字都属于一个特定的数字集合。输入数字集合(相邻数字之间没有空格),输出所有竖式。每个竖式前应有编号,之后应有一个空行。最后输出解的总数。具体格式见样例输出(为了便于观察,竖式中的空格改用小数点显示,但所写程序中应该输出空格,而非小数点)。 样例输入: 2357 样例输出: <1> ..775原创 2017-11-06 23:26:34 · 406 阅读 · 0 评论 -
C - Bazinga HDU - 5510 (搜索子串)
Ladies and gentlemen, please sit up straight. Don’t tilt your head. I’m serious. For nn given strings S1,S2,⋯,SnS1,S2,⋯,Sn, labelled from 11 to nn, you should find the largest i (1≤i≤n) such th原创 2017-11-12 17:08:08 · 752 阅读 · 1 评论 -
用字符串模拟 B - A + B Problem II HDU - 1002 (大数相加问题)
I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line of the input contains an integer T(1<=T<=20) which means the num原创 2017-11-12 21:46:25 · 372 阅读 · 1 评论 -
1/20集训一 STL E.(模拟stack queue priority_queue) I Can Guess the Data Structure!
1/20集训一 STLE.(模拟stack queue priority_queue) I Can Guess the Data Structure! There is a bag-like data structure, supporting two operations: 1 x Throw an element x into the bag. 2 T原创 2018-01-21 08:46:17 · 262 阅读 · 0 评论 -
1/21集训二 模拟+贪心 B.(模拟 改变布尔矩阵某点使其成为欧拉矩阵(每一行每一列之和为偶数))Error Correction
1/21集训二 模拟+贪心B.(模拟 改变矩阵某点使其成为欧拉矩阵(每一行每一列之和为偶数))Error Correction A boolean matrix has the parity property when each row and each column has an even sum, i.e. contains an even number of bits wh原创 2018-01-21 17:33:34 · 433 阅读 · 0 评论 -
1/21集训二 模拟+贪心 E.(模拟 判断一组序列是否满足先增再平后减)Unimodal Array
1/21集训二 模拟+贪心E.(模拟 判断一组序列是否满足先增再平后减)Unimodal ArrayArray of integers is unimodal, if: it is strictly increasing in the beginning; after that it is constant; after that it is strictl原创 2018-01-21 17:43:02 · 296 阅读 · 0 评论 -
1/22 测试一(STL 模拟 贪心)B.(模拟 比较两个字符串,输出比较结果) Online Judge
1/22 测试一(STL 模拟 贪心)B.(模拟 比较两个字符串,输出比较结果) Online Judge Ignatius is building an Online Judge, now he has worked out all the problems except the Judge System. The system has to read data from co原创 2018-01-22 23:26:48 · 265 阅读 · 0 评论 -
【递推】【巧妙模拟】【思维】ZOJ 1633 Big String 【拼接两个字符串】
【递推】【巧妙模拟】【思维】ZOJ 1633 Big String 【拼接两个字符串】We will construct an infinitely long string from two short strings: A = “^__^” (four characters), and B = “T.T” (three characters). Repeat the following st...原创 2018-07-28 13:21:59 · 315 阅读 · 0 评论