![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
只有自己才能看懂的算法
Wh_0336
When I become a big man, I will also change a cartoon avatar.
展开
-
线段树
You have N integers, A1, A2, … , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is to ask for the s...原创 2019-05-13 22:10:25 · 115 阅读 · 0 评论 -
gcd
原文链接求 gcd(36,8)aba%b3684840所以gcd(36,8)==4ll gcd(ll a,ll b){ return b==0?a:gcd(b,a%b);}ll gcd(ll a,ll b){ ll t; while(b)///当b为0时,得出结果,a既为结果 { t=b;///...转载 2019-05-18 22:23:56 · 354 阅读 · 0 评论 -
KMP
一块花布条,里面有些图案,另有一块直接可用的小饰条,里面也有一些图案。对于给定的花布条和小饰条,计算一下能从花布条中尽可能剪出几块小饰条来呢? Input 输入中含有一些数据,分别是成对出现的花布条和小饰条,其布条都是用可见ASCII字符表示的,可见的ASCII字符有多少个,布条的花纹也有多少种花样。花纹条和小饰条不会超过1000个字符长。如果遇见#字符,则不再进行工作。 ...原创 2019-05-23 17:16:55 · 188 阅读 · 0 评论