题解列表
Max函数(c++)
摘要:解题思路:使用Max函数int a=0,b=1;
int c=max(a,b);//然后c会被max赋值为两个数中更大的数的值注意事项:max中只能填两个数参考代码:#include<bits/st……
题解 2688: 蓝桥杯2022年第十三届省赛真题-技能升级
摘要:解题思路:贱命一条就是干注意事项:无参考代码:#include <stdio.h>#include <stdlib.h>#define max 1000005struct Node { int ……
题解 2688: 蓝桥杯2022年第十三届省赛真题-技能升级
摘要:解题思路: 简化攻击力增加量的计算过程,确保每次升级后都按等差数列求和来计算总增加攻击力。参考代码:#include <stdio.h>#include <limits.h>#define max ……
编写题解 1098: 陶陶摘苹果
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a[10],tg,zd=0; for(int i=0;……
C语言训练-计算一个整数N的阶乘
摘要:解题思路:循环注意事项:阶乘参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,sum; sum=1;……
2799 奥运奖牌计数
摘要:解题思路: #include <bits/stdc++.h> using namespace std; int main() { int n,sum1=0, sum……
编写题解 2799: 奥运奖牌计数
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,sum1=0,sum2=0,sum3=0,d; ……