题解列表
状态机模型DP #3067: 大盗阿福(C++)
摘要:# 大盗阿福
N家店铺
同时偷两家报警系统会启动
不惊动警察的情况下,最多可以得到多少现金
**状态 :** 对于当前店铺 [偷 | 不偷]
**状态定义 :** f[i……
暴力枚举 #3209: 蓝桥杯2024年第十五届省赛真题-好数
摘要:```
#define _CRT_SECURE_NO_WARNINGS 1
#include
#include
#include
#include
#include
#include
……
[编程入门]结构体之时间设计-题解(c语言代码)附解 思路简单
摘要:#include<stdio.h>
struct days{//定义结构体
int year;
int month;
int day;
}p1;
int main(){
sca……
表达式括号匹配(stack),来看看吧,不用栈写法
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
// 定义一个字符串变量ch,用于存储输入的字符串
string ch;
……
A+B for Input-Output Practice (V)
摘要: #include
using namespace std;
int main()
{
int i=0,j=0;
int N,n;……
字符串形式求解阶乘和数-C(一点小见解......)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int fact(int num);int main(){ int num=0,j=0,sum……