2976: 字符串中最长的连续出现的字符 摘要:```cpp #include using namespace std; int main() { char str[200]; int count=0,max=0,f; …… 题解列表 2023年02月10日 0 点赞 0 评论 380 浏览 评分:9.9
质因数个数 复杂度<O(根号n) 摘要:```cpp #include #include using namespace std; bool sort(long long n); int main() { lo…… 题解列表 2023年02月10日 0 点赞 0 评论 1710 浏览 评分:9.1
图的遍历-DFS 摘要:```cpp #include using namespace std; #define ll long long int n;//节点数 const int N = 55;//最大节点数 …… 题解列表 2023年02月10日 0 点赞 0 评论 508 浏览 评分:0.0
计算(a+b)*c的值 (c++) 摘要:解题思路:先设置变量a,b,c,再输入变量,最后输出(a+b)*c的值注意事项:a+b要带括号参考代码:#include<iostream>//导入头文件using namespace std;int…… 题解列表 2023年02月10日 0 点赞 0 评论 376 浏览 评分:9.9
计负均正1061题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int num[20]; double count=0.0…… 题解列表 2023年02月10日 0 点赞 0 评论 235 浏览 评分:0.0
计算(a+b)/c的值 (c++) 摘要:解题思路:先定义整数a,b,c,用cout输出(a+b)/c的值,就可以提交代码了。参考代码:#include<iostream>//导入头文件using namespace std;int main…… 题解列表 2023年02月10日 0 点赞 0 评论 705 浏览 评分:9.9
编写题解 1117: K-进制数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long LL;LL n,k,res;LL fac(in…… 题解列表 2023年02月10日 0 点赞 0 评论 279 浏览 评分:9.9
1334: [NOIP2004]合唱队形 摘要:解题思路:这道题其实就是从前和从后来求两个不下降序列。 b[i]:从第i个数开始的最长不下降序列 c[i]:从第i个数结束的最长不下降序列 类似与登山。注意事项:注意>号和<号!参考代码:#in…… 题解列表 2023年02月10日 0 点赞 0 评论 382 浏览 评分:9.9
2128: 信息学奥赛一本通T1264-合唱队形 摘要:解题思路:运用动态规划解此题!!!注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[1005],b[1005],c[1005…… 题解列表 2023年02月10日 0 点赞 0 评论 283 浏览 评分:6.0
2808: 买房子 (中关村怎么可能有这么便宜的房子) 摘要:解题思路:注意事项:参考代码:#include <iostream> // #include <sstream> #include <cstdio> // #include <algorithm…… 题解列表 2023年02月10日 0 点赞 0 评论 350 浏览 评分:0.0