题解列表

筛选

计算(a+b)/c的值 (c++)

摘要:解题思路:先定义整数a,b,c,用cout输出(a+b)/c的值,就可以提交代码了。参考代码:#include<iostream>//导入头文件using namespace std;int main……

编写题解 1117: K-进制数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long LL;LL n,k,res;LL fac(in……

1334: [NOIP2004]合唱队形

摘要:解题思路:这道题其实就是从前和从后来求两个不下降序列。 b[i]:从第i个数开始的最长不下降序列 c[i]:从第i个数结束的最长不下降序列 类似与登山。注意事项:注意>号和<号!参考代码:#in……

2805: 乘方计算 快速幂方法

摘要:解题思路: 快速幂注意事项:参考代码:#include <iostream> // #include <sstream> #include <cstdio> // #include <algor……

K-进制数题解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int zuhe(int n,int m){ int z=1; for(int i=……

有详解 简单易懂

摘要:```cpp //目标:计算每个科目的平均分以及输出总分最高的学生的信息 #include #include using namespace std; struct student{ s……