04 2018 档案
摘要:转载自:这位博主~ 描述 Weird Wally's Wireless Widgets, Inc. manufactures an eclectic assortment of small, wireless, network capable devices,...
阅读全文
摘要:转载自:点击打开链接 描述 一根长度为1米的木棒上有若干只蚂蚁在爬动。它们的速度为每秒一厘米或静止不动,方向只有两种,向左或者向右。如果两只蚂蚁碰头,则它们立即交换速度并继续爬动。三只蚂蚁碰头,则两边的蚂蚁交换速度,中间的蚂蚁仍然静止。如果它们爬到了木棒的边缘...
阅读全文
摘要:Description The country is facing a terrible civil war----cities in the country are divided into two parts supporting different ...
阅读全文
摘要:Description Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another ...
阅读全文
摘要:描述 A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected b...
阅读全文
摘要:描述 迪拜是富人的天堂。迪拜政府赚钱有高招。他们建造了很多人工海岛出售。这些海岛被建成各大洲的形状,所以统称为“世界岛”。买了这些岛的富豪们都想互相交个朋友,所以他们希望将这些岛用桥连接起来。比尔盖茨也预定了一个岛,但他是唯一一个不想让自己的岛和其他岛相连...
阅读全文
摘要:转载自:点击打开链接 描述 中国的小学教育现在是个大问题。老师不但在批评学生的时候要很小心,奖励学生的时候也得小心。刘老师以前常常给考试前10名的学生一点小奖励,但是一些家长现在对此有点生气。他们说他们的孩子可能会因为总是得不到奖励而受到伤害。刘老师只好改变他...
阅读全文
摘要:描述: 热带岛屿Lagrishan的首领现在面临一个问题:几年前,一批外援资金被用于维护村落之间的道路,但日益繁茂的丛林无情的侵蚀着村民的道路,导致道路维修开销巨大,长老会不得不放弃部分道路的维护。上图左侧图显示的是正在使用道路的简图以及每条路每个月...
阅读全文
摘要:描述 Sally Jones has a dozen Voyageur silver dollars. However, only eleven of the coins are true silver dollars; one coin is count...
阅读全文
摘要:题目链接 解题思路: 贪心,从面积最大的开始,分情况考虑...... # include# include//装箱问题,贪心,分情况讨论using namespace std;int main(){ int a,b,c,d,e,f; int sum2,...
阅读全文
摘要:描述Background There are a lot of monkeys in a mountain. Every one wants to be the monkey king. They keep arguing with each other ab...
阅读全文
摘要:Description Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable,...
阅读全文
摘要:描述约瑟夫问题:有n只猴子,按顺时针方向围成一圈选大王(编号从1到n),从第1号开始报数,一直数到m,数到m的猴子退出圈外,剩下的猴子再接着从1开始报数。就这样,直到圈内只剩下一只猴子时,这个猴子就是猴王,编程求输入n,m后,输出最后猴王的编号。输入每行是用空...
阅读全文
摘要:1.题目描述 将一个长度最多为30位数字的十进制非负整数转换为二进制数输出。 输入描述: 多组数据,每行为一个长度不超过30位的十进制非负整数。(注意是10进制数字的个数可能有30个,而非30bits的整数) 输出描述: 每行输出对应的二进制数。 ...
阅读全文
摘要:题目描述: Tino wrote a long long story. BUT! in Chinese... So I have to tell you the problem directly and discard his long long story....
阅读全文
摘要://实现字符串的查找、删除、替换# include# include//字符串的查找int find(char *str1,char *str2)//在str1中寻找str2{ int len1=strlen(str1); int len2=strlen...
阅读全文
摘要://实现字符串的查找、删除、替换 # include # include //字符串的查找 int find(char *str1,char *str2)//在str1中寻找str2 { int len1=strlen(str1); int len2=strlen(str2); int i=0,index; if(len1<len2) retur...
阅读全文
摘要:Problem Description 搬寝室是很累的,xhd深有体会.时间追述2006年7月9号,那天xhd迫于无奈要从27号楼搬到3号楼,因为10号要封楼了.看着寝室里的n件物品,xhd开始发呆,因为n是一个小于2000的整数,实在是太多了,于是xhd决...
阅读全文
摘要:转载自:http://freemind.pluskid.org/machine-learning/sparsity-and-some-basics-of-l1-regularization/#ed61992b37932e208ae114be75e42a3e6d...
阅读全文
摘要:转载自:这位博主~ 题目: N位同学站成一排,音乐老师要请其中的(N-K)位同学出列,使得剩下的K位同学不交换位置就能排成合唱队形。合唱队形是指这样的一种队形:设K位同学从左到右依次编号为1, 2, …, K,他们的身高分别为T1, T2, …, TK,则...
阅读全文
摘要:题目:Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substr...
阅读全文
摘要:题目描述: 输入一个字符串,以回车结束(字符串长度# include# includeusing namespace std;int main(){ char input[30]; char str1[30]; char str2[30]; gets(...
阅读全文
摘要:题目描述: 求任意两个不同进制非负整数的转换(2进制~16进制),所给整数在long所能表达的不同进制的表示符号为(0,1,...,9,a,b,...,f)或者(0,1,...,9,A,B,...,F)。 输入: 输入只有一行,包含三个整数a,n,b。a表示...
阅读全文
摘要:题目描述: The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to sha...
阅读全文
摘要:题目: A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum o...
阅读全文
摘要:Problem Description Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? Input The ...
阅读全文

浙公网安备 33010602011771号