编写题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,sum1=0,sum2=0,sum3=0,d; …… 题解列表 2024年06月16日 0 点赞 0 评论 605 浏览 评分:9.9
2799 奥运奖牌计数 摘要:解题思路: #include <bits/stdc++.h> using namespace std; int main() { int n,sum1=0, sum…… 题解列表 2024年06月16日 0 点赞 0 评论 554 浏览 评分:2.0
C语言训练-计算一个整数N的阶乘 摘要:解题思路:循环注意事项:阶乘参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,sum; sum=1;…… 题解列表 2024年06月16日 0 点赞 0 评论 492 浏览 评分:0.0
编写题解 1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a[10],tg,zd=0; for(int i=0;…… 题解列表 2024年06月16日 0 点赞 0 评论 528 浏览 评分:0.0
题解 2688: 蓝桥杯2022年第十三届省赛真题-技能升级 摘要:解题思路: 简化攻击力增加量的计算过程,确保每次升级后都按等差数列求和来计算总增加攻击力。参考代码:#include <stdio.h>#include <limits.h>#define max …… 题解列表 2024年06月16日 0 点赞 0 评论 769 浏览 评分:0.0
题解 2688: 蓝桥杯2022年第十三届省赛真题-技能升级 摘要:解题思路:贱命一条就是干注意事项:无参考代码:#include <stdio.h>#include <stdlib.h>#define max 1000005struct Node { int …… 题解列表 2024年06月16日 0 点赞 0 评论 561 浏览 评分:0.0
Max函数(c++) 摘要:解题思路:使用Max函数int a=0,b=1; int c=max(a,b);//然后c会被max赋值为两个数中更大的数的值注意事项:max中只能填两个数参考代码:#include<bits/st…… 题解列表 2024年06月17日 1 点赞 0 评论 689 浏览 评分:9.9
傻瓜式解决方法 #include#include//(类比依次输出数字的大小,采用中间变量进行排序)intmain(){charstr1[100],str2[100],str3[100];//读取三个字符串scanf("%99s",str1);//限制输入长度, 题解列表 2024年06月17日 0 点赞 0 评论 601 浏览 评分:0.0
简单易理解的思路 题目只是为了将大写改成小写,只要是控制原本字符数组中大写字母直接+32变成小写就好了#includeintmain(){inti;chara[128];gets(a);for(i=0;a[i]!='\0';i++)if(a[i]>='A'&&a[i] 题解列表 2024年06月17日 0 点赞 0 评论 545 浏览 评分:0.0
傻瓜式解决方法 倒序输出的思路可以从数字类比/图形输出类比就是要将一个过程拆成正反过程这里类比就是改变循环条件,将循环倒过来#include#includeintmain(){intj=0,len;//定义外层循环迭代点charstr[100],restr[100];gets(str);len=strlen(str) 题解列表 2024年06月18日 0 点赞 0 评论 692 浏览 评分:2.0