题解列表
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……
: [编程入门]自由下落的距离计算
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; float m,sum; scanf("%f%d",&m,&n); s……
编写题解 1471: 蓝桥杯基础练习VIP-矩形面积交
摘要:****不调用函数:
#include
#define min(x,y) ((x)(y)?(x):(y))
int main()
{
double……
区间dp+前缀和 #1898: 蓝桥杯算法提高VIP-合并石子(C++)
摘要:n堆石子,挑选任意一端区间 [L,R]
我们用F[L,R]表示从L到R合并为一堆所需要的**最小代价**
枚举一个切分点,把区间分割为[L,K] - [K+1,R],
那么问题就转为……
入门题,但是要注意看题目
摘要:# 注意审题!注意审题!注意审题!
#include
int main(){
long long num; //数字过大,用lld
scanf("……
利用指针,switch语句精简代码,给小白理清楚指针思路
摘要:解题思路:这个题有很多办法可以投机取巧,但是仍然建议小白脚踏实地,强化基础。我们利用指针实现对字符串的访问,无需多余的索引,常数,小白可以思考为什么指针a,b进入函数过后,再出来,他们指向的地址没有变……
A+B for Input-Output Practice (IV)
摘要: #include
using namespace std;
int main()
{
int i=0,n;
int ……