- 博客(17)
- 资源 (1)
- 收藏
- 关注
原创 poj 3278 Catch That Cow
题目链接:http://poj.org/problem?id=3278题目描述: DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000)...
2016-10-31 22:30:08 420
原创 bestcode Fxx and string
题目描述: Problem DescriptionYoung theoretical computer scientist Fxx get a string which contains lowercase letters only.The string SS contains nn lowercase letters S_1S_2\ldots S_nS1S2…Sn...
2016-10-29 20:25:12 472
原创 poj 2249 Binomial Showdown
题目链接:http://poj.org/problem?id=2249 题目描述: DescriptionIn how many ways can you choose k elements out of n elements, not taking order into account? Write a program to compute this number.In...
2016-10-29 14:09:16 214
原创 poj 1503 Integer Inquiry
题目链接:http://poj.org/problem?id=1503 题目描述: DescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he ...
2016-10-28 23:26:04 291
原创 hdu 2553 N皇后问题
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2553 题目描述: Problem Description在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input共...
2016-10-23 15:24:52 300
原创 hdu 2510 符号三角形
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2510 题目描述: Problem Description符号三角形的 第1行有n个由“+”和”-“组成的符号 ,以后每行符号比上行少1个,2个同号下面是”+“,2个异 号下面是”-“ 。计算有多少个不同的符号三角形,使其所含”+“ 和”-“ 的个数相同 。 n=7时的1个符号三角形...
2016-10-23 14:22:45 756
原创 hdu 1426 Sudoku Killer
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1426 题目描述: Problem Description自从2006年3月10日至11日的首届数独世界锦标赛以后,数独这项游戏越来越受到人们的喜爱和重视。据说,在2008北京奥运会上,会将数独列为一个单独的项目进行比赛,冠军将有可能获得的一份巨大的奖品———HDU免费七日游外加l...
2016-10-22 22:09:09 238
原创 hdu 1584 蜘蛛牌
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1584 题目描述: Problem Description蜘蛛牌是windows xp操作系统自带的一款纸牌游戏,游戏规则是这样的:只能将牌拖到比她大一的牌上面(A最小,K最大),如果拖动的牌上有按顺序排好的牌时,那么这些牌也跟着一起移动,游戏的目的是将所有的牌按同一花色从小到大排好...
2016-10-22 20:10:06 328 1
原创 hdu 1016 Prime Ring Problem
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1016 题目描述: Problem DescriptionA ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, ...
2016-10-21 21:04:06 203
原创 不定长数组 vector
vector是一个不定长数组模板类,所以需要用vector<int> a或者vector<double>b这样的方式来进行声明一个vector。vector<int>是一个类似于int a[]的整数数组,而vector<string>就是一个类似于string a[]的字符串数组。使用vector时要加#include<vector>头文...
2016-10-17 22:04:25 1167
原创 uva 101 木块问题 The Blocks Problem
题目描述: Description Background Many areas of Computer Science use simple, abstract domains for both analytical and empirical studies. For example, an early AI study of planning and robotics ...
2016-10-17 21:27:56 2137
原创 hdu 1250 Hat's Fibonacci
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1250 题目描述: DescriptionA Fibonacci sequence is calculated by adding the previous two members the sequence, with the first two members being both...
2016-10-10 20:45:02 329
原创 hdu 1099 不可摸数
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1999 题目描述: Descriptions(n)是正整数n的真因子之和,即小于n且整除n的因子和.例如s(12)=1+2+3+4+6=16.如果任何 数m,s(m)都不等于n,则称n为不可摸数. Input包含多组数据,首先输入T,表示有T组数据.每组数据1行给出n(2&...
2016-10-10 20:39:31 388
原创 hdu 2099 整数的尾数
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2099 题目描述: Description一个整数,只知道前几位,不知道末二位,被另一个整数除尽了,那么该数的末二位该是什么呢?Input输入数据有若干组,每组数据包含二个整数a,b(0<a<10000, 10<b<100),若遇到0 0则处理结束。...
2016-10-10 20:37:21 525
原创 hdu 2046 骨牌铺方格
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2046 题目描述: Description在2×n的一个长方形方格中,用一个1× 2的骨牌铺满方格,输入n ,输出铺放方案的总数. 例如n=3时,为2× 3方格,骨牌的铺放方案有三种,如下图: Input输入数据由多行组成,每行包含一个整数n,表示该测试实例的长方形方格的规...
2016-10-10 20:34:49 226
原创 hdu 2018 母牛的故事
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2018 题目描述: Description有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?Input输入数据由多个测试实例组成,每个测试实例占一行,包括一个整数n(0<n<55),n...
2016-10-10 20:32:22 217
原创 UVa 10474 大理石在哪儿
题目描述:Raju and Meena love to play with Marbles. They have got a lot ofmarbles with numbers written on them. At the beginning, Raju wouldplace the marbles one after another in ascending order of the n...
2016-10-01 16:25:01 361
MDNet代码及注释(pytorch版)
2018-11-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人