模拟只会猜题意
蒟蒻的ACMer
2014界大学新生
展开
-
YTU 2894: G--我要去内蒙古大草原
2894: G--我要去内蒙古大草原Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 161 Solved: 7[Submit][Status][Web Board]Description春天到了,小明想要从烟台开车去内蒙古大草原放松一下,这两地的距离是1422公里。小明的座驾每跑200公里必须加油。在烟台有加油站可原创 2015-08-11 15:37:26 · 1232 阅读 · 0 评论 -
POJ 2864 Pascal Library 水
Pascal LibraryTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5618 Accepted: 2674DescriptionPascal University, one of the oldest in the country, needs t原创 2015-08-07 19:54:48 · 596 阅读 · 0 评论 -
POJ 1027 The 3n+1 problem
The 3n + 1 problemTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 54275 Accepted: 17261DescriptionProblems in Computer Science are often classified as b原创 2015-08-07 19:52:30 · 526 阅读 · 0 评论 -
POJ 2000 Gold Coins 简单模拟
Gold CoinsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 21914 Accepted: 13732DescriptionThe king pays his loyal knight in gold coins. On the first day原创 2015-08-07 19:49:39 · 597 阅读 · 0 评论 -
POJ 1316 Self Numbers 筛选模拟
Self NumbersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 22203 Accepted: 12494DescriptionIn 1949 the Indian mathematician D.R. Kaprekar discovered原创 2015-08-07 19:45:06 · 727 阅读 · 0 评论 -
POJ 1922 Ride to School 简单模拟
Ride to SchoolTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 20162 Accepted: 8138DescriptionMany graduate students of Peking University are living in W原创 2015-08-07 19:42:36 · 968 阅读 · 0 评论 -
POJ 2136 Vertical Histogram 水
Vertical HistogramTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 18152 Accepted: 8764DescriptionWrite a program to read four lines of upper case (i.e., a原创 2015-08-05 19:42:54 · 680 阅读 · 0 评论 -
POJ 1833 排列 stl
排列Time Limit: 1000MS Memory Limit: 30000KTotal Submissions: 17674 Accepted: 7036Description题目描述: 大家知道,给出正整数n,则1到n这n个数可以构成n!种排列,把这些排列按照从小到大的顺序(字典顺序)列出,如n=3时,列出1 2原创 2015-08-05 19:40:02 · 386 阅读 · 0 评论 -
POJ 1581 A Contesting Decision 水
A Contesting DecisionA Contesting DecisionTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 2704 Accepted: 1910DescriptionJudging a programming contest is原创 2015-08-05 19:36:45 · 887 阅读 · 0 评论 -
POJ 2013 Symmetric Order 水
Symmetric OrderTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 12811 Accepted: 7772DescriptionIn your job at Albatross Circus Management (yes, it's run原创 2015-08-07 19:57:49 · 733 阅读 · 0 评论 -
POJ 2083 Fractal 递归
FractalTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 8060 Accepted: 3862DescriptionA fractal is an object or quantity that displays self-similarity, i原创 2015-08-07 20:00:31 · 643 阅读 · 0 评论 -
A Mathematical Curiosity 水
A - A Mathematical CuriosityTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionGiven two integers n and m, count the number of pair原创 2015-08-08 17:19:00 · 673 阅读 · 0 评论 -
POJ 3751 时间日期格式转换
时间日期格式转换Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7671 Accepted: 3585Description世界各地有多种格式来表示日期和时间。对于日期的常用格式,在中国常采用格式的是“年年年年/月月/日日”或写为英语缩略表示的”yyyy/原创 2015-08-11 13:34:15 · 701 阅读 · 0 评论 -
POJ 1504 Adding Reversed Numbers
Adding Reversed NumbersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 16279 Accepted: 8912DescriptionThe Antique Comedians of Malidinesia prefer comedi原创 2015-08-11 11:19:44 · 568 阅读 · 0 评论 -
POJ 1555 Polynomial Showdown
Polynomial ShowdownTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4494 Accepted: 1554DescriptionGiven the coefficients of a polynomial from degree 8 do原创 2015-08-11 11:16:24 · 1903 阅读 · 0 评论 -
POJ 1060 Modular multiplication of polynomials 逻辑运算
Modular multiplication of polynomialsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4289 Accepted: 1944DescriptionConsider polynomials whose coefficien原创 2015-08-11 10:59:53 · 1666 阅读 · 0 评论 -
POJ 2260 Error Correction 水
Error CorrectionTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5925 Accepted: 3827DescriptionA boolean matrix has the parity property when each row and原创 2015-08-11 10:55:01 · 447 阅读 · 0 评论 -
Contest1376 - "师创杯"烟台大学第二届ACM程序设计精英赛复现 B--Faultfinding
DescriptionDo you remember the game in which we find difference among several similar pictures? Now we change it into digital version. There are N digits, same or different. Please find how many d原创 2015-04-08 16:05:43 · 726 阅读 · 0 评论 -
POJ 1488 TEX Quotes 串 水
TEX QuotesTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 9385 Accepted: 4943DescriptionTEX is a typesetting language developed by Donald Knuth. It take原创 2015-08-11 10:52:17 · 1596 阅读 · 0 评论 -
Ignatius and the Princess IV 水
B - Ignatius and the Princess IVTime Limit:1000MS Memory Limit:32767KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription"OK, you are not too bad, em... But you can neve原创 2015-08-08 17:25:30 · 1465 阅读 · 0 评论 -
YTU 2387计算时间差【C++】
Problem C: 计算时间差【C++】Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 299 Solved: 90[Submit][Status][Web Board]Description对于按照"yyyymmddhhmmss"格式给定的时间,计算两个时间的差值。其中yyyy 表示年(0000~3000),mm表原创 2015-06-28 10:26:27 · 970 阅读 · 0 评论 -
YTU 2774: Prepare for CET6
2774: Prepare for CET6Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 36 Solved: 34[Submit][Status][Web Board]DescriptionHard to force the CET4&6 is imminent, which makes most of the stu原创 2015-05-28 15:34:22 · 760 阅读 · 0 评论 -
YTU 2775: 字母的争论
2775: 字母的争论Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 84 Solved: 57[Submit][Status][Web Board]Description某一天,26个小写的英文字母争论了起来,它们都想当老大,闹得不可开交。这时逗比的小甲想到了一个好办法使它们平息了下来,规则是这样的:读入一行仅由小写英文原创 2015-05-28 13:33:25 · 774 阅读 · 0 评论 -
山东第7届省赛 J题 Execution of Paladin
没玩过炉石,不想看这题,做的太晚了,应该早点做的。Execution of PaladinTime Limit: 2000MS Memory limit: 65536K题目描述Murloc is a powerful race in Hearthstone. In the set League of Explorers, a new Paladin abil原创 2016-06-10 19:50:12 · 954 阅读 · 0 评论 -
hdu Rikka with Parenthesis II 模拟
最优情况下一定交换第一个右括号和最后一个左括号,交换后判断一下即可。时间复杂度 O(n)O(n)\sum \lfloor \frac{Ns_i}{s_1}-\frac{Ns_j}{s_1} \rfloor∑⌊s1Nsi−s1Nsj⌋aaAccode:#pragma warning(disable:4786)//原创 2016-08-11 20:04:41 · 840 阅读 · 0 评论 -
poj 2996 Help Me with the Game 模拟
模拟 要细心啊code:#include #include #include #include #include #include using namespace std;#define maxn 105char str[maxn];char m[9][9];int has[128];struct N{ int t; int x,y; char原创 2017-03-27 17:09:33 · 382 阅读 · 0 评论 -
poj 2993 Emag eht htiw Em Pleh 模拟
参考 2996思路模拟code:#include #include #include #include #include #include using namespace std;#define maxn 105char str[maxn];char m[9][9];int has[128];int main(){ has['K']=1;has['Q']=2;原创 2017-03-27 18:36:15 · 287 阅读 · 0 评论 -
poj 3087 水模拟
ACcode:#include #include #include #include using namespace std;char a[105],b[105],s[105+105],c[105+105];int main(){ int loop,n,cnt=1; scanf("%d",&loop); while(loop--){ scan原创 2017-03-31 14:19:30 · 366 阅读 · 0 评论 -
poj 2632 模拟
按题意模拟就行///写了2个小时内心是崩溃的 还好1Acode:#include #include #include #include #include using namespace std;#define maxn 100005int mapp[105][105];struct P{ int x,y; int to;///0--N 1--E 2--S 3原创 2017-03-27 14:56:59 · 273 阅读 · 0 评论 -
山东省第一届ACM大学生程序设计竞赛 hello world! 水模拟
Hello World!Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^题目描述We know that Ivan gives Saya three problems to solve (Problem F), and this is the first problem.“We need a programmer原创 2016-03-31 13:42:35 · 1001 阅读 · 0 评论 -
SDUT 2167 Mathman Bank 模拟
题意:大模拟,模拟银行操作。分析:按题意一个一个操作的进行就好了ACcode:#include #include #define maxn 1000005#define ll long longusing namespace std;mapvis;struct N{ string id,ps; ll v; void init(){///不初始原创 2017-05-02 21:37:17 · 338 阅读 · 0 评论 -
山东第7届省赛 K题 Reversed Words
Reversed WordsTime Limit: 2000MS Memory limit: 131072K题目描述Some aliens are learning English. They have a very strange way in writing that they revered every word in the sentence but keep原创 2016-06-10 19:40:49 · 497 阅读 · 0 评论 -
山东省第7届省赛 E题 The Binding of Isaac
The Binding of IsaacTime Limit: 2000MS Memory limit: 65536K题目描述Ok, now I will introduce this game to you...Isaac is trapped in a maze which has many common rooms…Li原创 2016-06-10 19:31:41 · 672 阅读 · 0 评论 -
山东省第7届省赛 A题 Julyed
JulyedTime Limit: 2000MS Memory limit: 65536K题目描述 Julyed is preparing for her CET-6. She has N words to remember, but there is only M days left. If she can’t remember all these words,原创 2016-06-10 19:22:12 · 433 阅读 · 0 评论 -
YTU 2720: 删出多余的空格
Description小平在给弟弟检查英语作业时时,发现每个英语句子单词之间的空格个数不等,请你编程帮他把句子中多余的空格去掉,使每个单词之间只保留一个空格,首尾的空格也去掉。部分代码已给定如下,只需要提交缺失的代码。#include int main(){ void delSpace(char sentence[]); char sentenc原创 2015-05-21 22:46:09 · 625 阅读 · 0 评论 -
YTU 1922: 猴子分桃
Description老猴子辛苦了一辈子,给那群小猴子们留下了一笔巨大的财富——一大堆桃子。老猴子决定把这些桃子分给小猴子。 第一个猴子来了,它把桃子分成五堆,五堆一样多,但还多出一个。它把剩下的一个留给老猴子,自己拿走其中的一堆。 第二个猴子来了,它把桃子分成五堆,五堆一样多,但又多出一个。它把多出的一个留给老猴子,自己拿走其中的一堆。 后来的小猴子都如此照办。最后剩下的桃子全部留给老猴原创 2015-05-18 21:08:57 · 773 阅读 · 0 评论 -
YTU:1301: Excel地址转换
Description Excel是最常用的办公软件。每个单元格都有唯一的地址表示。比如:第12行第4列表示为:“D12”,第5行第255列表示为“IU5”。 事实上,Excel提供了两种地址表示方法,还有一种表示法叫做RC格式地址。 第12行第4列表示为:“R12C4”,第5行第255列表示为“R5C255”。 你的任务是:编写程序,实现从R原创 2015-05-18 21:01:16 · 563 阅读 · 0 评论 -
YTU 2891: E--围栏
Description一串连续字符被称作围栏当且仅当它由间隔的‘|’和‘-’组成。比如“|-|-|-|”或“|-|”(引号仅供说明)。注意“|-||-|”或者“--”不是围栏,因为每个都包含了两个或两个以上的相同连续字符。给你一个字符串,请找出它的最长的一个可以称作围栏的子串长度。Input长度为n(0≤n≤50)的字符串s,s只包含‘| ’、‘-’字符,原创 2015-05-18 20:48:13 · 749 阅读 · 0 评论 -
YTU 2887: D--机器人Bill
Description最近,Dr. Jiang 新设计一个机器人Bill。Bill很聪明,会做许多事情。唯独对质数的理解与人类不一样,它是从右往左读数。比如,它看到113时,会理解成311。让它比较23与19哪一个大,它说19大。原因是它的大脑会以为是32与91在进行比较。再比如,让它比较29与31,它说29大。给Bill 两个自然数A和B,让它将 [A,B] 区间中的所有质数原创 2015-05-18 20:41:26 · 656 阅读 · 0 评论 -
YTU 2889: B--字母数字大战
Description字母数字发生了战争,决定要分家,各自调选自己的家族成员。如果一个字符串仅由数字构成的那么属于dight家族;如果是仅由字母构成的那么属于letter家族;如果是由数字和字母一起构成的那么属于mixed家族。Input输入一个字符串,长度不超过100,且字符串中只能包括数字或大、小写字母。Output输出该字符原创 2015-05-18 20:37:10 · 787 阅读 · 0 评论