计算(a+b)/c的值 (c++) 摘要:解题思路:先定义整数a,b,c,用cout输出(a+b)/c的值,就可以提交代码了。参考代码:#include<iostream>//导入头文件using namespace std;int main…… 题解列表 2023年02月10日 0 点赞 0 评论 619 浏览 评分: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 评论 201 浏览 评分:9.9
1334: [NOIP2004]合唱队形 摘要:解题思路:这道题其实就是从前和从后来求两个不下降序列。 b[i]:从第i个数开始的最长不下降序列 c[i]:从第i个数结束的最长不下降序列 类似与登山。注意事项:注意>号和<号!参考代码:#in…… 题解列表 2023年02月10日 0 点赞 0 评论 229 浏览 评分:9.9
2128: 信息学奥赛一本通T1264-合唱队形 摘要:解题思路:运用动态规划解此题!!!注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[1005],b[1005],c[1005…… 题解列表 2023年02月10日 0 点赞 0 评论 201 浏览 评分:6.0
2808: 买房子 (中关村怎么可能有这么便宜的房子) 摘要:解题思路:注意事项:参考代码:#include <iostream> // #include <sstream> #include <cstdio> // #include <algorithm…… 题解列表 2023年02月10日 0 点赞 0 评论 275 浏览 评分:0.0
2805: 乘方计算 快速幂方法 摘要:解题思路: 快速幂注意事项:参考代码:#include <iostream> // #include <sstream> #include <cstdio> // #include <algor…… 题解列表 2023年02月09日 0 点赞 0 评论 329 浏览 评分:0.0
因数平方和(数论分块+数学式子推导) 摘要:~~~ #include using namespace std; const int mod=1e9+7; typedef long long ll; int n; ll qmin(ll…… 题解列表 2023年02月09日 0 点赞 0 评论 660 浏览 评分:5.0
1002: [编程入门]三个数最大值c++代码 摘要:解题思路:先重大到小排序,再输出最大值。注意事项:要输最大值。参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[…… 题解列表 2023年02月09日 0 点赞 0 评论 255 浏览 评分:9.9
K-进制数题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int zuhe(int n,int m){ int z=1; for(int i=…… 题解列表 2023年02月09日 0 点赞 0 评论 185 浏览 评分:9.9
有详解 简单易懂 摘要:```cpp //目标:计算每个科目的平均分以及输出总分最高的学生的信息 #include #include using namespace std; struct student{ s…… 题解列表 2023年02月09日 0 点赞 0 评论 473 浏览 评分:0.0