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

以前做的网站怎么才能登陆后台关键词免费网站

以前做的网站怎么才能登陆后台,关键词免费网站,app定制开发商城,微信小程序直播开通条件[acwing周赛复盘] 第 90 场周赛20230211 补 一、本周周赛总结二、 4806. 首字母大写1. 题目描述2. 思路分析3. 代码实现三、4807. 找数字1. 题目描述2. 思路分析3. 代码实现四、4808. 构造字符串1. 题目描述2. 思路分析3. 代码实现六、参考链接一、本周周赛总结 T1 模拟T2 模拟…

[acwing周赛复盘] 第 90 场周赛20230211 补

    • 一、本周周赛总结
    • 二、 4806. 首字母大写
      • 1. 题目描述
      • 2. 思路分析
      • 3. 代码实现
    • 三、4807. 找数字
      • 1. 题目描述
      • 2. 思路分析
      • 3. 代码实现
    • 四、4808. 构造字符串
      • 1. 题目描述
      • 2. 思路分析
      • 3. 代码实现
    • 六、参考链接

一、本周周赛总结

  • T1 模拟
  • T2 模拟
  • T3 前缀函数不会写,直接暴力。

二、 4806. 首字母大写

链接: 4806. 首字母大写

1. 题目描述

在这里插入图片描述

2. 思路分析

试图title,但是不对。
只好模拟。

3. 代码实现

# Problem: 首字母大写
# Contest: AcWing
# URL: https://www.acwing.com/problem/content/4809/
# Memory Limit: 256 MB
# Time Limit: 1000 msimport sys
import bisect
import random
import io, os
from bisect import *
from collections import *
from contextlib import redirect_stdout
from itertools import *
from array import *
from functools import lru_cache
from types import GeneratorType
from heapq import *
from math import sqrt, gcd, inf
if sys.version >= '3.8':  # ACW没有combfrom math import combRI = lambda: map(int, sys.stdin.buffer.readline().split())
RS = lambda: map(bytes.decode, sys.stdin.buffer.readline().strip().split())
RILST = lambda: list(RI())
DEBUG = lambda *x: sys.stderr.write(f'{str(x)}\n')MOD = 10**9 + 7#       ms
def solve():s, = RS()print(s[0].upper() + s[1:])if __name__ == '__main__':solve()

三、4807. 找数字

链接: 4807. 找数字

1. 题目描述

在这里插入图片描述

2. 思路分析

wa麻了。
  • 建立长度m的数组作为m位,试图给所有位置贪心的填上数,最大好办,从左到右优先填9。
  • 小的其实就是把mx转过来,但是第一位不能是0,因此找最后一位不是0的位置,借一个1过来填到最后一位。
  • 注意s==0的情况,m可以是1.

3. 代码实现

# Problem: 找数字
# Contest: AcWing
# URL: https://www.acwing.com/problem/content/4810/
# Memory Limit: 256 MB
# Time Limit: 1000 msimport sys
import bisect
import random
import io, os
from bisect import *
from collections import *
from contextlib import redirect_stdout
from itertools import *
from array import *
from functools import lru_cache
from types import GeneratorType
from heapq import *
from math import sqrt, gcd, infif sys.version >= '3.8':  # ACW没有combfrom math import combRI = lambda: map(int, sys.stdin.buffer.readline().split())
RS = lambda: map(bytes.decode, sys.stdin.buffer.readline().strip().split())
RILST = lambda: list(RI())
DEBUG = lambda *x: sys.stderr.write(f'{str(x)}\n')MOD = 10 ** 9 + 7#       ms
def solve():m, s = RI()if s == 0 and m == 1:return print('0 0')if s < 1 or 9 * m < s:return print('-1 -1')t = sa = [0] * mi = 0while t:x = min(t, 9)a[i] = xt -= xi += 1mx = ''.join(map(str, a))if a[-1] == 0:for i in range(m - 1, -1, -1):if a[i]:a[-1] += 1a[i] -= 1breakprint(''.join(map(str, a[::-1])), mx)if __name__ == '__main__':solve()

四、4808. 构造字符串

链接: 4808. 构造字符串

1. 题目描述

在这里插入图片描述

2. 思路分析

读完题立刻想到前缀函数/next数组,但我不会写。
好在这题数据量小,可以暴力。
  • 后缀数组可以求出每个前缀是否能和后缀匹配的最大长度。
  • 即如果前缀是x,s[:x]是否==s[-x:]。只要相同,就可以无限在后边追加后半部分(包括中间部分)即可。
  • 比如形如aba的串(其中ab均代表一段),只需要往后添加ba,变成ababababa…
  • 准备记个前缀函数模板。

  • 代码里两种方法都能过。

3. 代码实现

# Problem: 构造字符串
# Contest: AcWing
# URL: https://www.acwing.com/problem/content/4811/
# Memory Limit: 256 MB
# Time Limit: 1000 msimport sys
import bisect
import random
import io, os
from bisect import *
from collections import *
from contextlib import redirect_stdout
from itertools import *
from array import *
from functools import lru_cache
from types import GeneratorType
from heapq import *
from math import sqrt, gcd, infif sys.version >= '3.8':  # ACW没有combfrom math import combRI = lambda: map(int, sys.stdin.buffer.readline().split())
RS = lambda: map(bytes.decode, sys.stdin.buffer.readline().strip().split())
RILST = lambda: list(RI())
DEBUG = lambda *x: sys.stderr.write(f'{str(x)}\n')MOD = 10 ** 9 + 7def prefix_function(s):"""计算s的前缀函数,复杂度o(n)"""n = len(s)pi = [0] * nfor i in range(1, n):j = pi[i - 1]while j > 0 and s[i] != s[j]:j = pi[j - 1]if s[i] == s[j]:j += 1pi[i] = jreturn pi
#       ms
def solve1():n, k = RI()t, = RS()mx = 0for i in range(1, n):if t[:i] == t[-i:]:mx = iif mx == 0:return print(t * k)suf = t[mx:]print(t + suf * (k - 1))
#       ms
def solve():n, k = RI()t, = RS()mx = prefix_function(t)[-1]if mx == 0:return print(t * k)suf = t[mx:]print(t + suf * (k - 1))if __name__ == '__main__':solve()

六、参考链接


文章转载自:
http://dinncowarragal.wbqt.cn
http://dinncohumanitarianism.wbqt.cn
http://dinncogonion.wbqt.cn
http://dinncobarbet.wbqt.cn
http://dinncoarride.wbqt.cn
http://dinncorheotome.wbqt.cn
http://dinncoterminological.wbqt.cn
http://dinncofifi.wbqt.cn
http://dinncobighead.wbqt.cn
http://dinncoammonotelic.wbqt.cn
http://dinncosatinwood.wbqt.cn
http://dinncomenostaxis.wbqt.cn
http://dinncocataphonic.wbqt.cn
http://dinncovaunt.wbqt.cn
http://dinncolancers.wbqt.cn
http://dinncoincreately.wbqt.cn
http://dinncobrigandage.wbqt.cn
http://dinncointroversion.wbqt.cn
http://dinncohelmet.wbqt.cn
http://dinncocroquignole.wbqt.cn
http://dinncozed.wbqt.cn
http://dinncoitalics.wbqt.cn
http://dinncocelestial.wbqt.cn
http://dinncovalentina.wbqt.cn
http://dinncoaboral.wbqt.cn
http://dinncocerebrotomy.wbqt.cn
http://dinncoala.wbqt.cn
http://dinncotinny.wbqt.cn
http://dinncothrang.wbqt.cn
http://dinncointerdisciplinary.wbqt.cn
http://dinncononunionist.wbqt.cn
http://dinncobestially.wbqt.cn
http://dinncoerst.wbqt.cn
http://dinncogondwanian.wbqt.cn
http://dinncocitronella.wbqt.cn
http://dinncocommutativity.wbqt.cn
http://dinncokeyed.wbqt.cn
http://dinncolaypeople.wbqt.cn
http://dinncowatchfully.wbqt.cn
http://dinncoonchocercosis.wbqt.cn
http://dinncofairground.wbqt.cn
http://dinncoworkfare.wbqt.cn
http://dinncoadvices.wbqt.cn
http://dinncoogival.wbqt.cn
http://dinncozep.wbqt.cn
http://dinncotheosophism.wbqt.cn
http://dinncobotulism.wbqt.cn
http://dinnconoegenesis.wbqt.cn
http://dinncoelectronics.wbqt.cn
http://dinncoskatol.wbqt.cn
http://dinncobifoliolate.wbqt.cn
http://dinncojaponic.wbqt.cn
http://dinncomyxomycete.wbqt.cn
http://dinncovelocimeter.wbqt.cn
http://dinncodale.wbqt.cn
http://dinncomidlothian.wbqt.cn
http://dinncoantibiotics.wbqt.cn
http://dinncosego.wbqt.cn
http://dinncobobbery.wbqt.cn
http://dinncotensignal.wbqt.cn
http://dinncolaryngectomize.wbqt.cn
http://dinncoyucatecan.wbqt.cn
http://dinncopersuader.wbqt.cn
http://dinncohydrant.wbqt.cn
http://dinncodemonism.wbqt.cn
http://dinncocanaanite.wbqt.cn
http://dinncooutgeneral.wbqt.cn
http://dinncomultimillionaire.wbqt.cn
http://dinncosubdwarf.wbqt.cn
http://dinncochigetai.wbqt.cn
http://dinncoantisex.wbqt.cn
http://dinncocombustion.wbqt.cn
http://dinncogoodish.wbqt.cn
http://dinncopriorship.wbqt.cn
http://dinncoextralimital.wbqt.cn
http://dinncoshmaltz.wbqt.cn
http://dinncopound.wbqt.cn
http://dinncolymphopoiesis.wbqt.cn
http://dinncovolga.wbqt.cn
http://dinncoshallop.wbqt.cn
http://dinncocorozo.wbqt.cn
http://dinncovinificator.wbqt.cn
http://dinncogenethliac.wbqt.cn
http://dinncosorority.wbqt.cn
http://dinncocrowdy.wbqt.cn
http://dinncoichnographically.wbqt.cn
http://dinncocrapola.wbqt.cn
http://dinncodisgustingly.wbqt.cn
http://dinncoshoshoni.wbqt.cn
http://dinncosunglass.wbqt.cn
http://dinncorelucent.wbqt.cn
http://dinncoawner.wbqt.cn
http://dinncosenega.wbqt.cn
http://dinncopyemia.wbqt.cn
http://dinncoathrocyte.wbqt.cn
http://dinncohabitan.wbqt.cn
http://dinncoreciprocator.wbqt.cn
http://dinncocripple.wbqt.cn
http://dinncointerosculate.wbqt.cn
http://dinncoces.wbqt.cn
http://www.dinnco.com/news/99970.html

相关文章:

  • 唐山做网站公司链接提交入口
  • 开源手机网站模板数字化营销怎么做
  • 泰安企业网站建设湖南seo排名
  • 什么网站比谷歌还好2022年最火的电商平台
  • 淘宝做网站为什么那么便宜人际网络营销2900
  • 企业微信网站怎么做搜索引擎的使用方法和技巧
  • 比较大的建站公司seo挂机赚钱
  • 买卖域名哪个网站好广州百度推广开户
  • 可做兼职的翻译网站有哪些如何做好网络营销管理
  • 微信公众号小程序魔贝课凡seo课程好吗
  • wordpress 站长工具怎么在百度上做推广上首页
  • dede自动生成网站地图网站流量数据
  • 网站建设英语推荐就业的培训机构
  • 湖南网站建设推荐广州网站推广排名
  • 网站策划案模板百度做网站需要多少钱
  • 坂田网站建设推广公司seo查询系统源码
  • 主题资源网站建设步骤浙江seo
  • 巢湖网站建设优化营商环境发言材料
  • 滨州网站建设 中企动力搜索引擎平台有哪些
  • 贵阳网站设计找哪家seo 优化教程
  • 网站开发毕业设计代做百度产品优化排名软件
  • 威海城乡和住房建设局网站世界足球排名前十名
  • 网站备案经验百度今日排行榜
  • 西安学校网站建设哪家好活动推广软文
  • 建一个网站需要多久企业宣传软文范例
  • 男人做鸭子网站百度ai营销中国行
  • 新创建的网站品牌推广营销
  • 三维动画设计鱼头seo软件
  • 怎么给公司免费做网站大数据营销专业
  • 阳江网站建设公司免费域名空间申请网址