2025年3月7日

力扣每日一题2025年3月7日

摘要: 题目链接:https://leetcode.cn/problems/the-number-of-beautiful-subsets/?envType=daily-question&envId=2025-03-07 主要思路:用dfs将所有可能情况推演一遍并作出判断和求和 题解代码: class So 阅读全文

posted @ 2025-03-07 16:46 神奇猫猫侠 阅读(21) 评论(0) 推荐(0)

2025年3月4日

Codeforces Round 479 (Div. 3)

摘要: 比赛截图:总体上这场比赛应该算div3中偏下的水平,除了图论和f的优化,其他的感觉还好。 题A:Wrong Subtraction 该题思路:暴力求解:将n进行k次处理,个位不为0时,n-1;个位为0时,n除10 解题代码: #include <bits/stdc++.h> using ll=lon 阅读全文

posted @ 2025-03-04 19:29 神奇猫猫侠 阅读(21) 评论(0) 推荐(0)

2025年3月2日

2025_3_2 力扣每日

摘要: 题目链接:https://leetcode.cn/problems/palindrome-partitioning-ii/ 题目大意:给一个字符串,用最少的办法分割字符串使分割的字符串均为回文字符串; AC代码: class Solution { public: int minCut(string 阅读全文

posted @ 2025-03-02 17:43 神奇猫猫侠 阅读(19) 评论(0) 推荐(0)

2025年2月23日

2月23日两题

摘要: The First:https://codeforces.com/contest/2069/problem/C 思路: 找出以1和3围起来的2的组合数量。 1223 代码: #include <bits/stdc++.h> using namespace std; const int MOD = 9 阅读全文

posted @ 2025-02-23 18:18 神奇猫猫侠 阅读(6) 评论(0) 推荐(0)

2025年1月27日

每日一题:最多的方案

摘要: 题目链接:https://www.luogu.com.cn/problem/P4133 题目描述: 现在给一个正整数n,它可以写成一些斐波那契数的和的形式。如果我们要求不同的方案中不能有相同的斐波那契数,那么对一个n最多可以写出多少种方案呢? 输入格式:只有整数n. 输出格式:输出组成n的方案数. 阅读全文

posted @ 2025-01-27 11:25 神奇猫猫侠 阅读(12) 评论(0) 推荐(0)

2025年1月18日

每日一题:奶牛排队

摘要: 题目链接:https://www.luogu.com.cn/problem/P6510 题目描述: 奶牛在熊大妈的带领下排成了一条直队。 显然,不同的奶牛身高不一定相同…… 现在,奶牛们想知道,如果找出一些连续的奶牛,要求最左边的奶牛A是最矮的,最右边的B是最高的,且B奶牛高于A奶牛。中间如果存在奶 阅读全文

posted @ 2025-01-18 14:01 神奇猫猫侠 阅读(71) 评论(0) 推荐(0)

2025年1月10日

cf-800 a b c:https://codeforces.com/contest/1694

摘要: cf-800链接:https://codeforces.com/contest/1694 题a正常循环输入01,多的最后输入就行 你要的代码在这里 using namespace std; typedef long long ll; int main(){ int u; cin>>u; while 阅读全文

posted @ 2025-01-10 21:43 神奇猫猫侠 阅读(14) 评论(0) 推荐(0)

2024年12月12日

每日1+1;

摘要: 第一题:https://codeforces.com/contest/1768/problem/A #include<iostream> #include <string.h> #include<string> #include <vector> #include <cmath> #include 阅读全文

posted @ 2024-12-12 23:50 神奇猫猫侠 阅读(43) 评论(0) 推荐(0)

2024年11月29日

每日一题:https://codeforces.com/contest/1700/problem/B

摘要: 题目链接:https://codeforces.com/contest/1700/problem/B #include<iostream> #include <string.h> #include<string> #include <cmath> #include <algorithm> using 阅读全文

posted @ 2024-11-29 16:14 神奇猫猫侠 阅读(28) 评论(0) 推荐(0)

2024年11月28日

每日一题:https://codeforces.com/contest/1999/problem/D

摘要: 题目链接:https://codeforces.com/contest/1999/problem/D #include<iostream> #include<string> #include <vector> using namespace std; int main(){ int n; cin>> 阅读全文

posted @ 2024-11-28 14:56 神奇猫猫侠 阅读(30) 评论(0) 推荐(0)

导航