jiejiejiang2004

2024年9月1日 #

题解:Testing Round 19 (Div. 3) C2(KMP/字符串哈希)

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

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

2024年8月21日 #

题解: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 阅读(7) 评论(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 阅读(14) 评论(0) 推荐(0) 编辑

2024年8月19日 #

题解:牛客周赛 Round 56(A-E)

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

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

2024年8月7日 #

题解: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 阅读(9) 评论(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 阅读(19) 评论(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 阅读(55) 评论(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 阅读(16) 评论(0) 推荐(0) 编辑

2024年8月1日 #

题解: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 阅读(5) 评论(0) 推荐(0) 编辑

2024年7月31日 #

题解: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 阅读(7) 评论(0) 推荐(0) 编辑

导航