摘要:先附上补题链接,没打的同学可以来补一下: https://ac.nowcoder.com/acm/contest/98256 A 小红的01串(一) 题意 找到一个01串中相邻字符不同的对数 做法 从头到尾扫一遍,计算前后不一样的字符就可以了 #include <bits/stdc++.h> sig
阅读全文
摘要:A Twice 题面 Kinich 醒来迎接新的一天的开始。他打开手机,查看邮箱,发现了一份神秘的礼物。他决定打开礼物的盒子。 Kinich 用 整数打开数组 。最初,Kinich的分数是 。他将执行任意次数的以下操作: —选择两个索引 和
阅读全文
摘要:A 序列中的排列 题意: 每次给你两个正整数 ,并给你一段长度为 的序列。(所有输入均为小于等于100的正整数) 问:原序列中是否存在子序列,使得这个子序列是 的排列 子序列:某个序列的子序列是从最初序列通过去除某些元素但不破坏余下元素的相对位置(在前或在后)
阅读全文
摘要:题意 给你一个字符串,问: 这个字符串有没有可能是两个相同的字符串部分重合首尾拼接在一起的 如果是,输出YES,并输出任意一种字符串 如果不是,则输出NO 题解1 首先计算以这个字符串为模板的(KMP的) 数组 假如最后一个字符的 值大于原字符串长度的 \(\fra
阅读全文
摘要:B. Generate Permutation time limit per test: 1.5 seconds memory limit per test: 256 megabytes input: standard input output: standard output There is a
阅读全文
摘要:A. Make All Equal time limit per test: 1 second memory limit per test: 256 megabytes input: standard input output: standard output You are given a cyc
阅读全文
摘要:A 面包店故事 题面 小镇上有一家面包店,面包以 元的价格出售,加 元可以多加几块培根。小歪带着 元来到了面包店,他想知道自己能不能买到加培根的面包? 输入 在一行上输入三个整数
阅读全文
摘要:D. Slavic's Exam time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output Slavic has a very t
阅读全文
摘要:C. Showering time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output As a computer science s
阅读全文
摘要:B. Card Game time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output Suneet and Slavic play
阅读全文
摘要:A. A+B Again? time limit per test: 1 second memory limit per test: 256 megabytes input: standard input output: standard output Given a two-digit posit
阅读全文
摘要:C. Absolute Zero time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output You are given an ar
阅读全文
摘要:B. AND Reconstruction time limit per test: 1 second memory limit per test: 256 megabytes input: standard input output: standard output You are given a
阅读全文
摘要:A. Maximize the Last Element time limit per test: 1 second memory limit per test: 256 megabytes input: standard input output: standard output You are
阅读全文
摘要:D. Fun time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output Counting is Fun! — satyam343
阅读全文
摘要:C. Sort time limit per test: 5 seconds memory limit per test: 256 megabytes input: standard input output: standard output You are given two strings \(
阅读全文
摘要:由于A和B太简单了,我就放在一起讲了 A. Legs time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output It's anot
阅读全文
摘要:G Horse Drinks Water 题目描述 This problem is a variant of the General’s Horse Drinking Water problem. Given that the general’s horse is at point \((x_G,
阅读全文
摘要:C. Squaring time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output ikrpprpp found an array
阅读全文
摘要:本题含有B1和B2两个难度版本。由于关系相近,我把他们放在同一篇博客中,可自行选择观看 B1. Bouquet (Easy Version) time limit per test: 1.5 seconds memory limit per test: 512 megabytes input: st
阅读全文