动态规划,两个背包同时算 摘要:#### 动态规划 ``` void solve() { int N = in.nextInt(), M = in.nextInt(), K = in.nextInt(); …… 题解列表 2023年06月07日 0 点赞 0 评论 627 浏览 评分:0.0
C++字符串连接 摘要:# string ```c++ #include using namespace std; int main() { string a,b; while(cin>…… 题解列表 2023年06月08日 0 点赞 0 评论 359 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101]; int n,i; scanf…… 题解列表 2023年06月08日 0 点赞 0 评论 269 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100][100] = { 0 }, i, j, n, m,sum=0; scanf("…… 题解列表 2023年06月08日 0 点赞 0 评论 412 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double f(int x){ double c; if (x == 1) c = 1.0; else…… 题解列表 2023年06月08日 0 点赞 0 评论 239 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; long int max = -1000000,a[100],sum=0; …… 题解列表 2023年06月08日 0 点赞 0 评论 771 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和 摘要:#include<stdio.h> #include<stdlib.h> typedef struct elemtype { int a; int b; struct elem…… 题解列表 2023年06月08日 0 点赞 0 评论 222 浏览 评分:0.0
蓝桥杯算法训练VIP-链表数据求和操作(有老六解法,C语言) 摘要:老六解题法 #include<stdio.h> int main(){ int a[10],b[10]; int sum1 = 0,sum2 = 0; for(int i=0;…… 题解列表 2023年06月08日 0 点赞 0 评论 233 浏览 评分:0.0
------数字分离----- 摘要:解题思路:利用字符数组来接受数据然后顺序打印即可法一用函数法二不用函数感觉比法一还简洁一点若说错了请多多包含注意事项:参考代码://法一:/*题目 1034: [编程入门]自定义函数之数字分离题目描述…… 题解列表 2023年06月08日 0 点赞 0 评论 289 浏览 评分:0.0
基于树状数组实现 摘要:解题思路:树状数组注意事项:输入要快读参考代码:import sysn, m = map(int, input().split())a = [0 for _ in range(n + 1)]tr = …… 题解列表 2023年06月08日 0 点赞 0 评论 316 浏览 评分:0.0