![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM_模拟
知足--常乐
这个作者很懒,什么都没留下…
展开
-
HDU 2017多校联赛-1012 Balala Power!
问题描述 Talented Mr.Tang has n strings consisting of only lower case characters. He wants to charge them with Balala Power (he could change each character ranged from a to z into each number ranged fro原创 2017-07-26 21:00:24 · 397 阅读 · 0 评论 -
HDU 1727 Hastiness(模拟)
Problem Description How many problems did you AC? When you read this problem, don’t hasty and careless, this is also simple, haha, I didn’t cheat you. The game over soon, WisKey starts using English原创 2017-11-19 18:48:14 · 258 阅读 · 0 评论 -
EOJ Monthly 2017.12 A. 唐纳德先生和假骰子
在进行某些桌游,例如 UNO 或者麻将的时候,常常会需要随机决定从谁开始。骰子是一种好方案。普通的骰子有六个面,分别是一点、二点、三点、四点、五点、六点,六面向上的概率相同。由于骰子只能产生六种情况,而实际桌游时,却常常有三到四人,所以,我们在掷骰子时,常常采用两颗骰子,这个「随机的选择」就由骰子向上点数之和直接决定。我们采用这么一种方案,将向上点数之和对 p(人数)取模,模出来的 0,1,…,p−原创 2017-12-09 16:16:49 · 716 阅读 · 0 评论 -
EOJ Monthly 2017.12 B. 在哈尔滨的寒风中(规律)
kblack 来到了寒冬中的哈尔滨,哈尔滨的寒风令 kblack 瑟瑟发抖。世界上最远的距离,是你与宾馆只差一条冰街,而你却忘了穿上秋裤。kblack 终于冲进了宾馆,宾馆大厅的地板铺满了五颜六色的地砖,可以被看作是一块 n×m 格的棋盘,为了能使冻僵了的双脚尽快暖和起来,kblack 决定在地砖上走动,但是他被速冻的双脚在棋盘地板上只能走马步。 kblack 居然想知道有多少对地砖(无序点对)他原创 2017-12-09 17:31:17 · 399 阅读 · 0 评论 -
EOJ Monthly 2017.12 C.易位构词 (anagram)(模拟)
题目链接:http://acm.ecnu.edu.cn/problem/3451/易位构词 (anagram),指将一个单词中的字母重新排列,原单词中的每个字母都出现有且仅有一次。例如 “unce” 可以被易位构词成 “ecnu”。在某些情况下,要求重排而成的依然是一个单词,但本题没有这种要求,因为我们根本没有词典。 我们所感兴趣的是,有些单词中的字母进行适当的重排后,可以使得构成的单词每个对应的原创 2017-12-09 19:37:22 · 430 阅读 · 0 评论 -
哈尔滨理工大学第七届程序设计竞赛决赛 A 所有情况的和
题目描述 在acimo星球, tabris 是一名勇敢的屠龙勇士,在上绿岛屠龙前决定挑选N种装备武装自己,现在每种装备有两个,但每种装备tabris必须选择拿一个,不能多也不能少。 每件装备有自己的属性值,能给tabris属性加成。 对于不同种类的装备之间有叠加效果,如果选择多件装备,最终的属性加成为他们的乘积。 若tabris初始属性值为0,最后属性加成的期望是多少。 输入描述: 有多原创 2017-12-10 16:23:49 · 456 阅读 · 0 评论 -
哈尔滨理工大学第七届程序设计竞赛决赛 B 幸运大奖
题目描述 tabris实在是太穷了,为了发财,tabris去买了一张彩票,幸运地中了特别奖。 特别奖是这样的,不会直接给你发钱.会给你一串二进制数s,让你在s中选择一个不大于k的区间,这个区间表示的数就是获奖者的奖金数目. tabris中奖之后已经激动地蒙圈了,他不知道如何选择能获得最多的钱,你能帮帮他不? 输入描述: 输入一个整数T(T≤10),代表有T组数据. 每组数据占两行. 第原创 2017-12-10 16:26:22 · 299 阅读 · 0 评论 -
HDU 1861 游船出租(模拟)
传送门: http://acm.hdu.edu.cn/showproblem.php?pid=1861 Problem Description 现有公园游船租赁处请你编写一个租船管理系统。当游客租船时,管理员输入船号并按下S键,系统开始计时;当游客还船时,管理员输入船号并按下E键,系统结束计时。船号为不超过100的正整数。当管理员将0作为船号输入时,表示一天租船工作结束,系统应输出当天的游客租船原创 2017-11-25 16:29:50 · 354 阅读 · 0 评论 -
HDU 4847 Wow! Such Doge!(模拟)
Problem Description Chen, Adrian (November 7, 2013). “Doge Is An Ac- tually Good Internet Meme. Wow.”. Gawker. Retrieved November 22, 2013.Doge is an Internet meme that became popular in 2013. The m原创 2017-11-25 16:46:13 · 380 阅读 · 0 评论 -
Hdu 1070 Milk
传送门 http://acm.hdu.edu.cn/showproblem.php?pid=1070Problem Description Ignatius drinks milk everyday, now he is in the supermarket and he wants to choose a bottle of milk. There are many kinds of mi原创 2018-01-28 12:05:44 · 203 阅读 · 0 评论 -
蓝桥杯 问题 1115: DNA
传送门: http://www.dotcpp.com/oj/problem1115.html问题 1115: DNA时间限制: 1Sec 内存限制: 128MB 提交: 778 解决: 205题目描述 小强从小就喜欢生命科学,他总是好奇花草鸟兽从哪里来的。终于, 小强上中学了,接触到了神圣的名词–DNA.它有一个双螺旋的结构。这让一根筋的小强抓破头皮,“要是能画出来就好了” 小强喊道...原创 2018-03-14 18:29:02 · 1159 阅读 · 1 评论 -
HDU 2501-Tiling_easy version(递推)
Problem Description 有一个大小是 2 x n 的网格,现在需要用2种规格的骨牌铺满,骨牌规格分别是 2 x 1 和 2 x 2,请计算一共有多少种铺设的方法。Input 输入的第一行包含一个正整数T(T<=20),表示一共有 T组数据,接着是T行数据,每行包含一个正整数N(N<=30),表示网格的大小是2行N列。Output 输出一共有多少种铺设的方法,每组数据的输出占一行原创 2017-11-04 16:19:26 · 337 阅读 · 0 评论 -
HDU-2100 Lovekey(模拟)
LovekeyTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8922 Accepted Submission(s): 2926Problem Description XYZ-26进制数是一个每位都是大写字母的数字。 A、B、C、原创 2017-11-17 16:37:41 · 223 阅读 · 0 评论 -
HDU-1256 画8(模拟)
画8Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6577 Accepted Submission(s): 2907Problem Description 谁画8画的好,画的快,今后就发的快,学业发达,事业发达,祝大家发,发,发原创 2017-11-06 20:18:59 · 718 阅读 · 0 评论 -
HDU1200-To and Fro(字符串)
Problem Description Mo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letters only) down the columns, padding with extr原创 2017-08-12 10:01:18 · 296 阅读 · 0 评论 -
HDU 1075-What Are You Talking About(字符串)
Problem Description Ignatius is so lucky that he met a Martian yesterday. But he didn’t know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leaves原创 2017-08-12 09:56:57 · 256 阅读 · 0 评论 -
HDU 1039-Easier Done Than Said?(字符串)
Problem Description Password security is a tricky thing. Users prefer simple passwords that are easy to remember (like buddy), but such passwords are often insecure. Some sites use random computer-gen原创 2017-08-12 09:49:57 · 254 阅读 · 0 评论 -
HDU 1237-简单计算器(字符串)
Problem Description 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。Input 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。Output 对每个测试用例输出1行,即该表达式的值,精确到小数点后2位。Sample Input原创 2017-08-12 09:45:17 · 386 阅读 · 0 评论 -
HDU 2100-Lovekey(字符串)
Problem Description XYZ-26进制数是一个每位都是大写字母的数字。 A、B、C、…、X、Y、Z 分别依次代表一个0 ~ 25 的数字,一个 n 位的26进制数转化成是10进制的规则如下 A0A1A2A3…An-1 的每一位代表的数字为a0a1a2a3…an-1 ,则该XYZ-26进制数的10进制值就为 m = a0 * 26^(n-1) + a1 * 26^(n-2) +原创 2017-08-12 09:43:16 · 386 阅读 · 0 评论 -
HDU 6152-Friend-Graph(ccpc)
Problem Description It is well known that small groups are not conducive of the development of a team. Therefore, there shouldn’t be any small groups in a good team. In a team with n members,if there原创 2017-08-19 19:13:05 · 479 阅读 · 0 评论 -
HDU 6154-CaoHaha's staff(ccpc)
Problem Description “You shall not pass!” After shouted out that,the Force Staff appered in CaoHaha’s hand. As we all know,the Force Staff is a staff with infinity power.If you can use it skillful,i原创 2017-08-19 19:18:19 · 560 阅读 · 0 评论 -
HDU 2017多校联赛-Maximum Sequence
Problem Description Steph is extremely obsessed with “sequence problems” that are usually seen on magazines: Given the sequence 11, 23, 30, 35, what is the next number? Steph always finds them too eas原创 2017-07-28 17:28:38 · 378 阅读 · 0 评论 -
2017 ACM-ICPC 亚洲区(乌鲁木齐赛区)网络赛-A. Banana
Bananas are the favoured food of monkeys.In the forest, there is a Banana Company that provides bananas from different places.The company has two lists.The first list records the types of bananas prefe原创 2017-09-09 13:45:37 · 7708 阅读 · 2 评论 -
2017 ACM-ICPC 亚洲区(乌鲁木齐赛区)网络赛C. Coconut
Coconut is Captain Gangplank’s favourite fruit. That is why he needs to drink coconut juice from bb coconuts each day.On his next trip, he would pass through NN citis.His trip would begin in the 11-st原创 2017-09-09 13:47:15 · 933 阅读 · 0 评论 -
HDU 6205 card card card
Problem Description As a fan of Doudizhu, WYJ likes collecting playing cards very much. One day, MJF takes a stack of cards and talks to him: let’s play a game and if you win, you can get all these...原创 2018-03-14 19:38:38 · 290 阅读 · 0 评论