随笔分类 -  oj题记

1 2 3 4 下一页
HDoj 2062 Subset sequence
摘要:参考了 https://blog.csdn.net/qq_33266889/article/details/53468509 暂时没搞懂,以后再研究: #include<stdio.h> #include<iostream> #include<string> using namespace std; 阅读全文
posted @ 2020-04-21 19:08 沈香茶 阅读(132) 评论(0) 推荐(0)
HDoj 2061 Treasure the new start, freshmen!
摘要:Problem Description background:A new semester comes , and the HDU also meets its 50th birthday. No matter what's your major, the only thing I want to 阅读全文
posted @ 2020-04-21 11:25 沈香茶 阅读(154) 评论(0) 推荐(0)
HDoj 2060 Snooker
摘要:Problem Description background:Philip likes to play the QQ game of Snooker when he wants a relax, though he was just a little vegetable-bird. Maybe yo 阅读全文
posted @ 2020-04-20 17:03 沈香茶 阅读(232) 评论(0) 推荐(0)
HDoj 2059 龟兔赛跑
摘要:Problem Description 据说在很久很久以前,可怜的兔子经历了人生中最大的打击——赛跑输给乌龟后,心中郁闷,发誓要报仇雪恨,于是躲进了杭州下沙某农业园卧薪尝胆潜心修炼,终于练成了绝技,能够毫不休息得以恒定的速度(VR m/s)一直跑。兔子一直想找机会好好得教训一下乌龟,以雪前耻。最近正 阅读全文
posted @ 2020-04-18 23:28 沈香茶 阅读(138) 评论(0) 推荐(0)
***HDoj 2058 The sum problem
摘要:Problem Description Given a sequence 1,2,3,......N, your job is to calculate all the possible sub-sequences that the sum of the sub-sequence is M. Inp 阅读全文
posted @ 2020-04-16 21:28 沈香茶 阅读(88) 评论(0) 推荐(0)
***HDoj 2057 A + B Again
摘要:Problem Description There must be many A + B problems in our HDOJ , now a new one is coming.Give you two hexadecimal integers , your task is to calcul 阅读全文
posted @ 2020-04-15 22:26 沈香茶 阅读(183) 评论(0) 推荐(0)
HDoj 2056 Rectangles
摘要:Problem Description Given two rectangles and the coordinates of two points on the diagonals of each rectangle,you have to calculate the area of the in 阅读全文
posted @ 2020-04-15 13:20 沈香茶 阅读(134) 评论(0) 推荐(0)
HDoj 2055 An easy problem
摘要:Problem Description we define f(A) = 1, f(a) = -1, f(B) = 2, f(b) = -2, ... f(Z) = 26, f(z) = -26;Give you a letter x and a number y , you should outp 阅读全文
posted @ 2020-04-15 09:25 沈香茶 阅读(101) 评论(0) 推荐(0)
HDoj 2054 A == B ?
摘要:Problem Description Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO". Input each test case contains two numbers 阅读全文
posted @ 2020-04-14 19:35 沈香茶 阅读(150) 评论(0) 推荐(0)
HDoj 2053 Switch Game
摘要:Problem Description There are many lamps in a line. All of them are off at first. A series of operations are carried out on these lamps. On the i-th o 阅读全文
posted @ 2020-04-12 16:39 沈香茶 阅读(170) 评论(0) 推荐(0)
HDoj 2052 Picture
摘要:Problem Description Give you the width and height of the rectangle,darw it. Input Input contains a number of test cases.For each case ,there are two n 阅读全文
posted @ 2020-04-11 23:21 沈香茶 阅读(137) 评论(0) 推荐(0)
HDoj 2051 Bitset
摘要:Problem Description Give you a number on base ten,you should output it on base two.(0 < n < 1000) Input For each case there is a postive number n on b 阅读全文
posted @ 2020-04-09 23:20 沈香茶 阅读(95) 评论(0) 推荐(0)
HDoj 2050 折线分割平面
摘要:Problem Description 我们看到过很多直线分割平面的题目,今天的这个题目稍微有些变化,我们要求的是n条折线分割平面的最大数目。比如,一条折线可以将平面分成两部分,两条折线最多可以将平面分成7部分,具体如下所示。 Input 输入数据的第一行是一个整数C,表示测试实例的个数,然后是C 阅读全文
posted @ 2020-04-09 20:49 沈香茶 阅读(185) 评论(0) 推荐(0)
***HDoj 2049 不容易系列之(4)——考新郎
摘要:Problem Description 国庆期间,省城HZ刚刚举行了一场盛大的集体婚礼,为了使婚礼进行的丰富一些,司仪临时想出了有一个有意思的节目,叫做"考新郎",具体的操作是这样的:首先,给每位新娘打扮得几乎一模一样,并盖上大大的红盖头随机坐成一排;然后,让各位新郎寻找自己的新娘.每人只准找一个, 阅读全文
posted @ 2020-04-09 19:44 沈香茶 阅读(183) 评论(0) 推荐(0)
**HDoj 2048 神、上帝以及老天爷
摘要:Problem Description HDU 2006'10 ACM contest的颁奖晚会隆重开始了!为了活跃气氛,组织者举行了一个别开生面、奖品丰厚的抽奖活动,这个活动的具体要求是这样的:首先,所有参加晚会的人员都将一张写有自己名字的字条放入抽奖箱中;然后,待所有字条加入完毕,每人从箱中取一 阅读全文
posted @ 2020-04-09 15:31 沈香茶 阅读(140) 评论(0) 推荐(0)
**HDoj 2047 阿牛的EOF牛肉串
摘要:Problem Description 今年的ACM暑期集训队一共有18人,分为6支队伍。其中有一个叫做EOF的队伍,由04级的阿牛、XC以及05级的COY组成。在共同的集训生活中,大家建立了深厚的友谊,阿牛准备做点什么来纪念这段激情燃烧的岁月,想了一想,阿牛从家里拿来了一块上等的牛肉干,准备在上面 阅读全文
posted @ 2020-04-02 18:41 沈香茶 阅读(183) 评论(0) 推荐(0)
HDoj 2046 骨牌铺方格
摘要:Problem Description 在2×n的一个长方形方格中,用一个1× 2的骨牌铺满方格,输入n ,输出铺放方案的总数.例如n=3时,为2× 3方格,骨牌的铺放方案有三种,如下图: Input 输入数据由多行组成,每行包含一个整数n,表示该测试实例的长方形方格的规格是2×n (0<n<=50 阅读全文
posted @ 2020-04-02 11:22 沈香茶 阅读(158) 评论(0) 推荐(0)
**HDoj 2045 不容易系列之(3)—— LELE的RPG难题
摘要:Problem Description 人称“AC女之杀手”的超级偶像LELE最近忽然玩起了深沉,这可急坏了众多“Cole”(LELE的粉丝,即"可乐"),经过多方打探,某资深Cole终于知道了原因,原来,LELE最近研究起了著名的RPG难题:有排成一行的n个方格,用红(Red)、粉(Pink)、绿 阅读全文
posted @ 2020-04-01 22:59 沈香茶 阅读(157) 评论(0) 推荐(0)
HDoj 2044 一只小蜜蜂...
摘要:Problem Description 有一只经过训练的蜜蜂只能爬向右侧相邻的蜂房,不能反向爬行。请编程计算蜜蜂从蜂房a爬到蜂房b的可能路线数。其中,蜂房的结构如下所示。 Input 输入数据的第一行是一个整数N,表示测试实例的个数,然后是N 行数据,每行包含两个整数a和b(0<a<b<50)。 O 阅读全文
posted @ 2020-04-01 15:25 沈香茶 阅读(110) 评论(0) 推荐(0)
HDoj 2043 密码
摘要:Problem Description 网上流传一句话:"常在网上飘啊,哪能不挨刀啊~"。其实要想能安安心心地上网其实也不难,学点安全知识就可以。首先,我们就要设置一个安全的密码。那什么样的密码才叫安全的呢?一般来说一个比较安全的密码至少应该满足下面两个条件:(1).密码长度大于等于8,且不要超过1 阅读全文
posted @ 2020-04-01 13:18 沈香茶 阅读(184) 评论(0) 推荐(0)

1 2 3 4 下一页