jiejiejiang2004

随笔分类 -  题解

1 2 3 下一页

备战ACM训练的题解
题解:牛客周赛 Round 72(A-D)(E只有代码)
摘要:先附上补题链接,没打的同学可以来补一下: https://ac.nowcoder.com/acm/contest/98256 A 小红的01串(一) 题意 找到一个01串中相邻字符不同的对数 做法 从头到尾扫一遍,计算前后不一样的字符就可以了 #include <bits/stdc++.h> sig 阅读全文

posted @ 2024-12-17 15:32 Jiejiejiang 阅读(29) 评论(0) 推荐(0) 编辑

题解:CF contest 2037 : [Codeforces Round 988 (Div. 3)] (A-E)
摘要:A Twice 题面 Kinich 醒来迎接新的一天的开始。他打开手机,查看邮箱,发现了一份神秘的礼物。他决定打开礼物的盒子。 Kinich 用 n 整数打开数组 a 。最初,Kinich的分数是 0 。他将执行任意次数的以下操作: —选择两个索引 ij 阅读全文

posted @ 2024-11-18 11:18 Jiejiejiang 阅读(92) 评论(0) 推荐(0) 编辑

题解:牛客小白月赛102(A - C)
摘要:A 序列中的排列 题意: 每次给你两个正整数 n,k ,并给你一段长度为 n 的序列。(所有输入均为小于等于100的正整数) 问:原序列中是否存在子序列,使得这个子序列是 k 的排列 子序列:某个序列的子序列是从最初序列通过去除某些元素但不破坏余下元素的相对位置(在前或在后) 阅读全文

posted @ 2024-10-12 19:34 Jiejiejiang 阅读(32) 评论(0) 推荐(0) 编辑

题解:Testing Round 19 (Div. 3) C2(KMP/字符串哈希)
摘要:题意 给你一个字符串,问: 这个字符串有没有可能是两个相同的字符串部分重合首尾拼接在一起的 如果是,输出YES,并输出任意一种字符串 如果不是,则输出NO 题解1 首先计算以这个字符串为模板的(KMP的)next 数组 假如最后一个字符的 next 值大于原字符串长度的 \(\fra 阅读全文

posted @ 2024-09-01 23:58 Jiejiejiang 阅读(67) 评论(0) 推荐(0) 编辑

题解:Codeforces Round 967 (Div. 2) B [思维/构造]
摘要: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 阅读全文

posted @ 2024-08-21 16:49 Jiejiejiang 阅读(75) 评论(0) 推荐(0) 编辑

题解:Codeforces Round 967 (Div. 2) 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 阅读全文

posted @ 2024-08-21 15:10 Jiejiejiang 阅读(73) 评论(0) 推荐(0) 编辑

题解:牛客周赛 Round 56(A-E)
摘要:A 面包店故事 题面 小镇上有一家面包店,面包以 x 元的价格出售,加 y 元可以多加几块培根。小歪带着 n 元来到了面包店,他想知道自己能不能买到加培根的面包? 输入 在一行上输入三个整数 x,y,n(1x,y,n100) 阅读全文

posted @ 2024-08-19 14:57 Jiejiejiang 阅读(51) 评论(0) 推荐(0) 编辑

题解:Codeforces Round 964 (Div. 4) D
摘要: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 阅读全文

posted @ 2024-08-07 16:34 Jiejiejiang 阅读(32) 评论(0) 推荐(0) 编辑

题解:Codeforces Round 964 (Div. 4) C
摘要: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 阅读全文

posted @ 2024-08-07 16:12 Jiejiejiang 阅读(60) 评论(0) 推荐(0) 编辑

题解:Codeforces Round 964 (Div. 4) B
摘要: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 阅读全文

posted @ 2024-08-07 16:01 Jiejiejiang 阅读(97) 评论(0) 推荐(0) 编辑

题解:Codeforces Round 964 (Div. 4) A
摘要: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 阅读全文

posted @ 2024-08-07 12:00 Jiejiejiang 阅读(60) 评论(0) 推荐(0) 编辑

题解:Pinely Round 4 (Div. 1 + Div. 2) C
摘要: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 阅读全文

posted @ 2024-08-01 10:39 Jiejiejiang 阅读(9) 评论(0) 推荐(0) 编辑

题解:Pinely Round 4 (Div. 1 + Div. 2) B
摘要: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 阅读全文

posted @ 2024-07-31 15:08 Jiejiejiang 阅读(21) 评论(0) 推荐(0) 编辑

题解:Pinely Round 4 (Div. 1 + Div. 2) 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 阅读全文

posted @ 2024-07-30 19:40 Jiejiejiang 阅读(19) 评论(0) 推荐(0) 编辑

题解:Codeforces Round 962 (Div. 3) D
摘要:D. Fun time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output Counting is Fun! — satyam343 阅读全文

posted @ 2024-07-30 10:42 Jiejiejiang 阅读(34) 评论(0) 推荐(0) 编辑

题解:Codeforces Round 962 (Div. 3) C
摘要: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 \( 阅读全文

posted @ 2024-07-30 10:17 Jiejiejiang 阅读(40) 评论(0) 推荐(0) 编辑

题解:Codeforces Round 962 (Div. 3) A&B
摘要:由于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 阅读全文

posted @ 2024-07-30 09:46 Jiejiejiang 阅读(33) 评论(0) 推荐(0) 编辑

题解:2024牛客多校第四场 G
摘要: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, 阅读全文

posted @ 2024-07-26 21:11 Jiejiejiang 阅读(44) 评论(0) 推荐(0) 编辑

题解:Codeforces Round 961 (Div. 2) C
摘要:C. Squaring time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output ikrpprpp found an array 阅读全文

posted @ 2024-07-26 13:16 Jiejiejiang 阅读(25) 评论(0) 推荐(0) 编辑

题解:Codeforces Round 961 (Div. 2) B1&B2
摘要:本题含有B1和B2两个难度版本。由于关系相近,我把他们放在同一篇博客中,可自行选择观看 B1. Bouquet (Easy Version) time limit per test: 1.5 seconds memory limit per test: 512 megabytes input: st 阅读全文

posted @ 2024-07-25 16:49 Jiejiejiang 阅读(44) 评论(0) 推荐(0) 编辑

1 2 3 下一页

导航

统计信息

点击右上角即可分享
微信分享提示