自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 Pairs Forming LCM 唯一分解定理

题目:Find the result of the following code:A straight forward implementation of the code may time out. If you analyze the code, you will find that the code actually counts the number of pairs (i, ...

2018-08-29 21:20:07 191

原创 Bi-shoe and Phi-shoe

题目表述:Bamboo Pole-vault is a massively popular sport in Xzhiland. And Master Phi-shoe is a very popular coach for his success. He needs some bamboos for his students, so he asked his assistant Bi-Sho...

2018-08-28 20:52:23 68

原创 Help Hanzo 求大区间素数个数

题目:Amakusa, the evil spiritual leader has captured the beautiful princess Nakururu. The reason behind this is he had a little problem with Hanzo Hattori, the best ninja and the love of Nakururu. Aft...

2018-08-27 21:21:41 424 1

原创 青蛙的约会

题目: 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一直朝着某个方向跳下去,总能碰到对方的。但是除非这两只青蛙在同一时间跳到同一点上,不然是永远都不可能碰面的。为了帮助这两只...

2018-08-27 15:44:23 130

原创 Maximum GCD

题目:https://odzkskevi.qnssl.com/fa02fde9e6b0c8050da822e55c9593e5?v=1534093437 这道题目是从给出的数里,两两进行求最大公约数,最后输出最大的最大公约数。AC代码://需要两个数组,一个是char型的,为了求输入的各个数,因为有空格的存在,所以输入比较麻烦,用数组比较容易理解一些,另一个是int型的,用来记录...

2018-08-15 12:13:38 352

原创 Leading and Trailing

题目:You are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits of .输入:Input starts with an integer T (≤ 1000), denoting the nu...

2018-08-14 18:58:01 112

原创 Harmonic Number

题目:In mathematics, the nth harmonic number is the sum of the reciprocals of the first n natural numbers:In this problem, you are given n, you have to find Hn.输入:Input starts with an intege...

2018-08-13 19:00:14 118

原创 Goldbach`s Conjecture 哥德巴赫猜想

题目:Goldbach's conjecture is one of the oldest unsolved problems in number theory and in all of mathematics. It states:Every even integer, greater than 2, can be expressed as the sum of two primes ...

2018-08-11 22:44:53 547

原创 Large Division 判断是否整除

题目:Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only if there exists an integer c such that a = b *...

2018-08-10 23:59:22 175

原创 GCD Again

题目表述:Do you have spent some time to think and try to solve those unsolved problem after one ACM contest? No? Oh, you must do this when you want to become a "Big Cattle". Now you will find that thi...

2018-08-05 12:49:01 219

原创 ACboy needs your help 分组背包

题目表述:ACboy has N courses this term, and he plans to spend at most M days on study.Of course,the profit he will gain from different course depending on the days he spend on it.How to arrange the M da...

2018-08-04 23:02:35 97

原创 悼念512汶川大地震遇难同胞——珍惜现在,感恩生活

题目表述:急!灾区的食物依然短缺! 为了挽救灾区同胞的生命,心系灾区同胞的你准备自己采购一些粮食支援灾区,现在假设你一共有资金n元,而市场有m种大米,每种大米都是袋装产品,其价格不等,并且只能整袋购买。 请问:你用有限的资金最多能采购多少公斤粮食呢? 后记: 人生是一个充满了变数的生命过程,天灾、人祸、病痛是我们生命历程中不可预知的威胁。 月有阴晴圆缺,人有旦夕祸福,未来对于我们而言...

2018-08-04 17:44:51 351

原创 Robberies 01背包

题目表述:The aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because they become too greedy. He has decided to work in the lu...

2018-08-03 23:58:18 124

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除