随笔分类 -  HDU_ACM

摘要:Problem DescriptionThere is a hill with n holes around. The holes are signed from 0 to n-1.A rabbit must hide in one of the holes. A wolf searches the... 阅读全文
posted @ 2015-08-04 15:01 Vmetrio 阅读(185) 评论(0) 推荐(0)
摘要:Problem Description七夕节那天,月老来到数字王国,他在城门上贴了一张告示,并且和数字王国的人们说:"你们想知道你们的另一半是谁吗?那就按照告示上的方法去找吧!"人们纷纷来到告示前,都想知道谁才是自己的另一半.告示如下:数字N的因子就是所有比N小又能被N整除的所有正整数,如12的因子... 阅读全文
posted @ 2015-08-04 14:18 Vmetrio 阅读(241) 评论(0) 推荐(0)
摘要:Problem DescriptionEddy's interest is very extensive, recently he is interested in prime number. Eddy discover the all number owned can be divided int... 阅读全文
posted @ 2015-08-04 13:21 Vmetrio 阅读(188) 评论(0) 推荐(0)
摘要:Problem DescriptionAs we know , we always use the decimal system in our common life, even using the computer. If we want to calculate the value that 3... 阅读全文
posted @ 2015-07-17 17:40 Vmetrio 阅读(227) 评论(0) 推荐(0)
摘要:Problem Description一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢?Input输入中含有一些数据,分别是成对出现的花布条和小饰条,其布条都是用可见ASCII字符表示的,可见的ASCII字符... 阅读全文
posted @ 2015-07-12 14:00 Vmetrio 阅读(214) 评论(0) 推荐(0)
摘要:Problem DescriptionIn the new year party, everybody will get a "special present".Now it's your turn to get your special present, a lot of presents now... 阅读全文
posted @ 2015-07-10 18:22 Vmetrio 阅读(190) 评论(0) 推荐(0)
摘要:Problem DescriptionSky从小喜欢奇特的东西,而且天生对数字特别敏感,一次偶然的机会,他发现了一个有趣的四位数2992,这个数,它的十进制数表示,其四位数字之和为2+9+9+2=22,它的十六进制数BB0,其四位数字之和也为22,同时它的十二进制数表示1894,其四位数字之和也为2... 阅读全文
posted @ 2015-07-07 14:38 Vmetrio 阅读(217) 评论(0) 推荐(0)
摘要:Problem Descriptionlily的好朋友xiaoou333最近很空,他想了一件没有什么意义的事情,就是统计一篇文章里不同单词的总数。下面你的任务是帮助xiaoou333解决这个问题。Input有多组数据,每组一行,每组就是一篇小文章。每篇小文章都是由小写字母和空格组成,没有标点符号,遇... 阅读全文
posted @ 2015-07-07 14:03 Vmetrio 阅读(245) 评论(0) 推荐(0)
摘要:Problem Description小兔的叔叔从外面旅游回来给她带来了一个礼物,小兔高兴地跑回自己的房间,拆开一看是一个棋盘,小兔有所失望。不过没过几天发现了棋盘的好玩之处。从起点(0,0)走到终点(n,n)的最短路径数是C(2n,n),现在小兔又想如果不穿越对角线(但可接触对角线上的格点),这样... 阅读全文
posted @ 2015-07-06 13:30 Vmetrio 阅读(244) 评论(0) 推荐(0)
摘要:Problem DescriptionThere must be many A + B problems in our HDOJ , now a new one is coming.Give you two hexadecimal integers , your task is to calcula... 阅读全文
posted @ 2015-07-05 15:57 Vmetrio 阅读(154) 评论(0) 推荐(0)
摘要:Problem Descriptionlcy gives a hard puzzle to feng5166,lwg,JGShining and Ignatius: gave a and b,how to know the a^b.everybody objects to this BT probl... 阅读全文
posted @ 2015-07-05 11:35 Vmetrio 阅读(161) 评论(0) 推荐(0)
摘要:Problem Description输入一个十进制数N,将它转换成R进制数输出。Input输入数据包含多个测试实例,每个测试实例包含两个整数N(32位整数)和R(210)。Output为每个测试实例输出转换后的数,每个输出占一行。如果R大于10,则对应的数字规则参考16进制(比如,10用A表示,等... 阅读全文
posted @ 2015-07-05 08:20 Vmetrio 阅读(274) 评论(0) 推荐(0)
摘要:Problem DescriptionEddy usually writes articles ,but he likes mixing the English letter uses, for example "computer science" is written frequently "co... 阅读全文
posted @ 2015-06-05 17:38 Vmetrio 阅读(509) 评论(0) 推荐(0)
摘要:DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words an... 阅读全文
posted @ 2015-06-05 17:32 Vmetrio 阅读(206) 评论(0) 推荐(0)
摘要:DescriptionThere are N people want to choose the best person. Each person select the best person $a_i$, .John wants to know that who received the most... 阅读全文
posted @ 2015-06-04 19:10 Vmetrio 阅读(338) 评论(0) 推荐(0)
摘要:Description甜甜从小就喜欢画图画,最近他买了一支智能画笔,由于刚刚接触,所以甜甜只会用它来画直线,于是他就在平面直角坐标系中画出如下的图形:甜甜的好朋友蜜蜜发现上面的图还是有点规则的,于是他问甜甜:在你画的图中,我给你两个点,请你算一算连接两点的折线长度(即沿折线走的路线长度)吧。Inpu... 阅读全文
posted @ 2015-06-04 19:08 Vmetrio 阅读(173) 评论(0) 推荐(0)
摘要:Description假设有x1个字母A, x2个字母B,..... x26个字母Z,同时假设字母A的价值为1,字母B的价值为2,..... 字母Z的价值为26。那么,对于给定的字母,可以找到多少价值 2 #include 3 4 int le[30],n1[55],n2[55]; 5 6 ... 阅读全文
posted @ 2015-06-04 18:00 Vmetrio 阅读(250) 评论(0) 推荐(0)
摘要:Description给定一个日期,输出这个日期是该年的第几天。Input输入数据有多组,每组占一行,数据格式为YYYY/MM/DD组成,具体参见sample input ,另外,可以向你确保所有的输入数据是合法的。Output对于每组输入数据,输出一行,表示该日期是该年的第几天。Sample In... 阅读全文
posted @ 2015-06-04 17:45 Vmetrio 阅读(193) 评论(0) 推荐(0)
摘要:DescriptionToday is Saturday, 17th Nov,2007. Now, if i tell you a date, can you tell me what day it is ? InputThere are multiply cases. One line is on... 阅读全文
posted @ 2015-06-04 17:40 Vmetrio 阅读(353) 评论(0) 推荐(0)
摘要:Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that d... 阅读全文
posted @ 2015-06-04 17:37 Vmetrio 阅读(212) 评论(0) 推荐(0)