向着曙光前进的博客

新手上路,请大佬笔下留情

Romantic

Problem Description The Sky is Sprite.The Birds is Fly in the Sky.The Wind is Wonderful.Blew Throw the TreesTrees are Shaking, Leaves are Falling.Lov...

2018-04-26 15:48:11

阅读数:11

评论数:0

扩展欧几里得算法

扩展欧几里得算法是啥,那就要先知道什么是欧几里得算法 欧几里得算法 扩展欧几里得算法是欧几里得算法的推广,利用欧几里得算法的思想和递归求得贝祖等式a*x+b*y=gcd(a,b)不定方程中的一组x和y的解。 原理如下: 设a>b 当b=0时,很显然a*x=gcd(a,b)=...

2018-04-23 20:54:19

阅读数:12

评论数:0

NBA Finals

Consider two teams, Lakers and Celtics, playing a series ofNBA Finals until one of the teams wins n games. Assume that the probabilityof Lakers winni...

2018-04-12 14:59:12

阅读数:10

评论数:0

牛客练习赛10第二题

#include #include #include #include #include #define LL long long #define N 1000009 using namespace std; int a[N], n; int b[N], r; int maxn[N]; int m...

2018-01-19 18:50:46

阅读数:29

评论数:0

B - Fxx and game )(ACM)

Young theoretical computer scientist Fxx designed a game for his students. In each game, you will get three integers X,k,tX,k,t.In each step,...

2017-05-20 11:08:59

阅读数:105

评论数:0

A - Fxx and string (ACM)

Young theoretical computer scientist Fxx get a string which contains lowercase letters only. The string SS contains nn lowercase letters S1S...

2017-05-20 11:05:26

阅读数:65

评论数:0

ACMA - MG loves gold

MG is a lucky boy. He is always be able to find gold from underground. It is known that the gold is a sequence with nn elements, which has it...

2017-04-22 16:07:01

阅读数:120

评论数:0

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