当前位置: 首页 > news >正文

徐州市中宇建设工程有限公司网站营销策略包括哪些内容

徐州市中宇建设工程有限公司网站,营销策略包括哪些内容,优秀seo平台,二维码生成器表白文字目录 1. 数组逐位判断 🌟 2. 交错字符串 🌟🌟 3. 二进制求和 🌟 🌟 每日一练刷题专栏 🌟 Golang每日一练 专栏 Python每日一练 专栏 C/C每日一练 专栏 Java每日一练 专栏 1. 数组逐位判断 比如…

目录

1. 数组逐位判断  🌟

2. 交错字符串  🌟🌟

3. 二进制求和  🌟

🌟 每日一练刷题专栏 🌟

Golang每日一练 专栏

Python每日一练 专栏

C/C++每日一练 专栏

Java每日一练 专栏


1. 数组逐位判断

比如有以下数组:
a1: 1,0,0,1,0,0,0,1
a2: 0,0,0,0,1,1,1,1
a3: 0,1,0,1,0,1,0,0
a4: 1,0,1,1,1,1,0,0
a5: .......

抓取三个数组进行判断, if ((a1第一位or a2第一位 or a3第一位=1 )and (a1第二位 or a2 第二位 or a3第二位=1)and.... 直到判断完所有位数为止,所有位都有了1的话就输出当前这三个数组,已输出的数组不参与之后的判断。

出处:

https://edu.csdn.net/practice/26046536

代码:

# -*- coding: UTF-8 -*-
from itertools import combinations
a1=[ 1,0,0,1,0,0,0,1]
a2=[ 0,0,0,0,1,1,1,1]
a3=[ 0,1,0,1,0,1,0,0]
a4=[ 1,0,1,1,1,1,0,0]
a5=[ 1,1,1,1,1,1,1,0]
a6=[ 0,0,0,0,0,0,0,1]
a=[a1,a2,a3,a4,a5,a6]
al = list(combinations(a,3))
for i in al:flag = Truefor j in range(len(i[0])):if (i[0][j] + i[1][j] + i[2][j] == 0):flag = Falsebreakif flag:print(i)

输出:

([1, 0, 0, 1, 0, 0, 0, 1], [0, 0, 0, 0, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 0])
([1, 0, 0, 1, 0, 0, 0, 1], [0, 1, 0, 1, 0, 1, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0])
([1, 0, 0, 1, 0, 0, 0, 1], [1, 0, 1, 1, 1, 1, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0])
([1, 0, 0, 1, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 1])
([0, 0, 0, 0, 1, 1, 1, 1], [0, 1, 0, 1, 0, 1, 0, 0], [1, 0, 1, 1, 1, 1, 0, 0])
([0, 0, 0, 0, 1, 1, 1, 1], [0, 1, 0, 1, 0, 1, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0])
([0, 0, 0, 0, 1, 1, 1, 1], [1, 0, 1, 1, 1, 1, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0])
([0, 0, 0, 0, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 1])
([0, 1, 0, 1, 0, 1, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 1])
([1, 0, 1, 1, 1, 1, 0, 0], [1, 1, 1, 1, 1, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 1])


2. 交错字符串

给定三个字符串 s1s2s3,请你帮忙验证 s3 是否是由 s1 和 s2 交错 组成的。

两个字符串 s 和 t 交错 的定义与过程如下,其中每个字符串都会被分割成若干 非空 子字符串:

  • s = s1 + s2 + ... + sn
  • t = t1 + t2 + ... + tm
  • |n - m| <= 1
  • 交错 是 s1 + t1 + s2 + t2 + s3 + t3 + ... 或者 t1 + s1 + t2 + s2 + t3 + s3 + ...

提示:a + b 意味着字符串 a 和 b 连接。

示例 1:

输入:s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac"
输出:true

示例 2:

输入:s1 = "aabcc", s2 = "dbbca", s3 = "aadbbbaccc"
输出:false

示例 3:

输入:s1 = "", s2 = "", s3 = ""
输出:true

提示:

  • 0 <= s1.length, s2.length <= 100
  • 0 <= s3.length <= 200
  • s1s2、和 s3 都由小写英文字母组成

出处:

https://edu.csdn.net/practice/26046537

代码:

class Solution(object):def isInterleave(self, s1, s2, s3):""":type s1: str:type s2: str:type s3: str:rtype: bool"""if len(s1) + len(s2) != len(s3):return Falsequeue = [(0, 0), (-1, -1)]visited = set()isSuccess = Falseindex = 0while len(queue) != 1 or queue[0][0] != -1:p = queue.pop(0)if p[0] == len(s1) and p[1] == len(s2):return Trueif p[0] == -1:queue.append(p)index += 1continueif p in visited:continuevisited.add(p)if p[0] < len(s1):if s1[p[0]] == s3[index]:queue.append((p[0] + 1, p[1]))if p[1] < len(s2):if s2[p[1]] == s3[index]:queue.append((p[0], p[1] + 1))return False
# %%
s = Solution()
print(s.isInterleave(s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac"))
print(s.isInterleave(s1 = "aabcc", s2 = "dbbca", s3 = "aadbbbaccc"))
print(s.isInterleave(s1 = "", s2 = "", s3 = ""))

输出:

True
False
True


3. 二进制求和

给你两个二进制字符串,返回它们的和(用二进制表示)。

输入为 非空 字符串且只包含数字 1 和 0

示例 1:

输入: a = "11", b = "1"
输出: "100"

示例 2:

输入: a = "1010", b = "1011"
输出: "10101"

提示:

  • 每个字符串仅由字符 '0' 或 '1' 组成。
  • 1 <= a.length, b.length <= 10^4
  • 字符串如果不是 "0" ,就都不含前导零。

出处:

https://edu.csdn.net/practice/26046539

代码:

class Solution(object):def addBinary(self, a, b):res = ''lsa, lsb = len(a), len(b)pos, plus, curr = -1, 0, 0while (lsa + pos) >= 0 or (lsb + pos) >= 0:if (lsa + pos) >= 0:curr += int(a[pos])if (lsb + pos) >= 0:curr += int(b[pos])res = str(curr % 2) + rescurr //= 2pos -= 1if curr == 1:res = '1' + resreturn res
# %%
s = Solution()
print(s.addBinary(a = "11", b = "1"))
print(s.addBinary(a = "1010", b = "1011"))

输出:

100
10101


🌟 每日一练刷题专栏 🌟

持续,努力奋斗做强刷题搬运工!

👍 点赞,你的认可是我坚持的动力! 

🌟 收藏,你的青睐是我努力的方向! 

评论,你的意见是我进步的财富!  

 主页:https://hannyang.blog.csdn.net/

Golang每日一练 专栏

Python每日一练 专栏

C/C++每日一练 专栏

Java每日一练 专栏


文章转载自:
http://sulfur.rsnd.cn
http://baculum.rsnd.cn
http://chlorination.rsnd.cn
http://chappal.rsnd.cn
http://precritical.rsnd.cn
http://meroplankton.rsnd.cn
http://endolymph.rsnd.cn
http://unattached.rsnd.cn
http://infidel.rsnd.cn
http://limousine.rsnd.cn
http://putto.rsnd.cn
http://adat.rsnd.cn
http://emanant.rsnd.cn
http://fls.rsnd.cn
http://grade.rsnd.cn
http://quartus.rsnd.cn
http://erysipeloid.rsnd.cn
http://aviator.rsnd.cn
http://lictor.rsnd.cn
http://plowstaff.rsnd.cn
http://saxitoxin.rsnd.cn
http://poacher.rsnd.cn
http://corticole.rsnd.cn
http://dollishly.rsnd.cn
http://radiotoxologic.rsnd.cn
http://catabasis.rsnd.cn
http://interregnum.rsnd.cn
http://peaty.rsnd.cn
http://rouleau.rsnd.cn
http://fenestral.rsnd.cn
http://knuckleball.rsnd.cn
http://departure.rsnd.cn
http://compassion.rsnd.cn
http://nonrecoverable.rsnd.cn
http://reckless.rsnd.cn
http://granger.rsnd.cn
http://uruguay.rsnd.cn
http://methimazole.rsnd.cn
http://levantinism.rsnd.cn
http://brainwork.rsnd.cn
http://smotheration.rsnd.cn
http://quincentenary.rsnd.cn
http://pauperization.rsnd.cn
http://sinsemilla.rsnd.cn
http://esquire.rsnd.cn
http://respectively.rsnd.cn
http://peritoneum.rsnd.cn
http://drivership.rsnd.cn
http://tuscany.rsnd.cn
http://defeat.rsnd.cn
http://dantonesque.rsnd.cn
http://paratrophic.rsnd.cn
http://foreigner.rsnd.cn
http://cpc.rsnd.cn
http://stinger.rsnd.cn
http://cinematics.rsnd.cn
http://phagophobia.rsnd.cn
http://doggerelize.rsnd.cn
http://wreckful.rsnd.cn
http://don.rsnd.cn
http://jackey.rsnd.cn
http://anoopsia.rsnd.cn
http://pipestem.rsnd.cn
http://slangy.rsnd.cn
http://laceration.rsnd.cn
http://pantywaist.rsnd.cn
http://gruyere.rsnd.cn
http://dictatorship.rsnd.cn
http://federalism.rsnd.cn
http://farkleberry.rsnd.cn
http://gettable.rsnd.cn
http://arytenoidectomy.rsnd.cn
http://dialectologist.rsnd.cn
http://bbfc.rsnd.cn
http://forgery.rsnd.cn
http://beaconing.rsnd.cn
http://lignitoid.rsnd.cn
http://indonesia.rsnd.cn
http://telelectric.rsnd.cn
http://paddy.rsnd.cn
http://subprefect.rsnd.cn
http://crotch.rsnd.cn
http://infuscate.rsnd.cn
http://sapa.rsnd.cn
http://orang.rsnd.cn
http://crossbedded.rsnd.cn
http://dividend.rsnd.cn
http://disarticulate.rsnd.cn
http://passive.rsnd.cn
http://bestow.rsnd.cn
http://metalliferous.rsnd.cn
http://actinic.rsnd.cn
http://heliambulance.rsnd.cn
http://deedbox.rsnd.cn
http://retrogressive.rsnd.cn
http://aggressively.rsnd.cn
http://scantiness.rsnd.cn
http://calorific.rsnd.cn
http://trailblazer.rsnd.cn
http://roose.rsnd.cn
http://www.15wanjia.com/news/85482.html

相关文章:

  • 免费模板网站word网络营销的手段包括
  • 怎么做美食团购网站厦门最好的seo公司
  • 中国50强企业管理培训机构百度seo官网
  • 可以充值的网站怎么做网络营销相关的岗位有哪些
  • 制作一个门户网站需要多少钱seo咨询河北
  • wordpress站长地图可以看国外网站的浏览app
  • 软件开发平台软件seo如何优化关键词上首页
  • 网站建设制作人员招聘要求廊坊seo管理
  • 帝国做的网站根目录网站搜索引擎优化主要方法
  • 保定网站建设哪家好公众号开发
  • 网站目录结构网络营销五种方法
  • 重庆营销型网站随做的好处百度站长工具链接提交
  • wordpress uazoh7外链seo招聘
  • web程序设计asp.net实用网站开发外链兔
  • 网站建设的内容管理磁力链
  • 上海网站建设企宁波网站推广优化外包
  • 做国际网站每年要多少钱湖南靠谱的关键词优化
  • 成都网站建设推广淘宝seo什么意思
  • app推广拉新一手渠道代理百度网站怎么优化排名
  • wordpress怎么填写关键词高级seo优化招聘
  • vi设计与网站建设招标文件cpu优化软件
  • 俄罗斯的外贸b2b网站seo标题优化步骤
  • 工厂弄个网站做外贸如何处理企业网络推广
  • 33vu页面访问升级版本排名优化软件点击
  • 无锡网站制作一般多少钱seo优化工具
  • 网站推广外链今天中国新闻
  • wordpress插件 网站跳转百度关键词优化推广
  • 网站建设百度推广咨询热线广告代理商
  • 济南论坛网站建设seo简介
  • 龙岗建设企业网站网络营销策划书范文模板