随笔分类 -  ACM-XJBX

摘要:You are to find all the two-word compound words in a dictionary. A two-word compound word is a word in the dictionary that is the conc... 阅读全文
posted @ 2018-07-23 21:56 StarHai 阅读(250) 评论(0) 推荐(0)
摘要:Now our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. But ... 阅读全文
posted @ 2018-07-23 21:54 StarHai 阅读(163) 评论(0) 推荐(0)
摘要:Misha hacked the Codeforces site. Then he decided to let all the users change their handles. A user can now change his handle any numb... 阅读全文
posted @ 2018-07-23 21:53 StarHai 阅读(222) 评论(0) 推荐(0)
摘要:Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, ... shows the first ... 阅读全文
posted @ 2018-07-23 21:51 StarHai 阅读(177) 评论(0) 推荐(0)
摘要:Many areas of Computer Science use simple, abstract domains for both analytical and empirical studies. For example, an early AI study ... 阅读全文
posted @ 2018-07-23 21:50 StarHai 阅读(197) 评论(0) 推荐(0)
摘要:Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would pl... 阅读全文
posted @ 2018-07-23 21:48 StarHai 阅读(171) 评论(0) 推荐(0)
摘要:The gaming company Sandstorm is developing an online two player game. You have been asked to implement the ranking system. All players... 阅读全文
posted @ 2018-07-23 21:46 StarHai 阅读(253) 评论(0) 推荐(0)
摘要:C. Three Parts of the Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou ar... 阅读全文
posted @ 2018-07-18 00:49 StarHai 阅读(346) 评论(0) 推荐(0)
摘要:B. Polycarp's Practicetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp i... 阅读全文
posted @ 2018-07-18 00:46 StarHai 阅读(395) 评论(0) 推荐(0)
摘要:A. Adjacent Replacementstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMishka go... 阅读全文
posted @ 2018-07-18 00:42 StarHai 阅读(332) 评论(0) 推荐(0)
摘要:F. Isomorphic Stringstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are giv... 阅读全文
posted @ 2018-07-09 02:13 StarHai 阅读(348) 评论(0) 推荐(0)
摘要:查找第k大Submit Page Summary Time Limit: 1 Sec Memory Limit: 128 Mb Submitted: 316 Solved: 20 Description小W有很强的好胜心,也有... 阅读全文
posted @ 2018-07-07 22:46 StarHai 阅读(418) 评论(0) 推荐(0)
摘要:Description Most of the time when rounding a given number, it is customary to round to some multiple of a power of 10. However, the... 阅读全文
posted @ 2018-05-24 22:14 StarHai 阅读(292) 评论(0) 推荐(0)
摘要:DescriptionNow we have a number, you can swap any two adjacent digits of it, but you can not swap more than K times. Then, what is the... 阅读全文
posted @ 2018-05-24 22:13 StarHai 阅读(310) 评论(0) 推荐(0)
摘要:DescriptionIn the planet Pandora, Jake found an old encryption algorithm. The plaintext, key and ciphertext are all four decimal numbe... 阅读全文
posted @ 2018-05-24 22:12 StarHai 阅读(275) 评论(0) 推荐(0)
摘要:Description Yucept21和他的室友Zyn因为宿舍没电去网吧上网,上了27分钟,Cs打电话来说来电了。所以Yucept21在第29分钟下机了,上网的费用是一块钱,然后Zyn墨迹了两分钟,第31分钟下机,上机费用是2元。现在知道网吧是按照半个小时计费的,假... 阅读全文
posted @ 2018-05-24 22:11 StarHai 阅读(366) 评论(0) 推荐(0)
摘要:Description 有一个N*N的字符矩阵,从上到下依次记为第1行,第2行,……,第N行,从左至右依次记为第1列,第2列,……,第N列。 对于这个矩阵会进行一系列操作,但这些操作只有两类: (1) R: 将矩阵逆时针旋转90度; (2) P... 阅读全文
posted @ 2018-05-24 22:10 StarHai 阅读(446) 评论(0) 推荐(0)
摘要:Description从m个不同元素中取出n (n ≤ m)个元素的所有组合的个数,叫做从m个不同元素中取出n个元素的组合数。组合数的计算公式如下:C(m, n) = m!/((m - n)!n!) 现在请问,如果将组合数C(m, n)写成二进制数,请问转这个二进制数... 阅读全文
posted @ 2018-05-23 23:07 StarHai 阅读(417) 评论(0) 推荐(0)
摘要:Description给定些数字,这些数中只有一个数出现了奇数次,找出这个数。Input每组数据第一行n表示数字个数,1 #include#include#includeusing namespace std;const int maxn=1e6+10;int a[m... 阅读全文
posted @ 2018-05-23 23:07 StarHai 阅读(404) 评论(0) 推荐(0)
摘要:DescriptionDanni想为屏幕上的一个矩形着色,但是她想到了一个问题。当点击鼠标以后电脑是如何判断填充的区域呢?现在给你一个平面直角坐标系,其中有一个矩形和一个点,矩形的四条边均是平行于x轴或y轴的。请你判断这个点相对于矩形的位置,即在矩形内,在矩形上,还是... 阅读全文
posted @ 2018-05-23 23:05 StarHai 阅读(270) 评论(0) 推荐(0)