编写一个程序,输入a,b,c三个值,输出其中最大值。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d%d%d",&a,&b,&c); if(a<c&&b<c){ …… 题解列表 2024年02月23日 0 点赞 0 评论 213 浏览 评分:9.9
类似1050题可解 摘要:解题思路:注意事项:部分地方还可以更精简参考代码:#include <stdio.h>#include <stdlib.h>typedef struct { char name[10]; char n…… 题解列表 2024年02月23日 0 点赞 0 评论 203 浏览 评分:9.9
编写题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long a=1,n; cin>>n…… 题解列表 2024年02月23日 0 点赞 0 评论 186 浏览 评分:0.0
题解 2794: 求平均年龄 摘要:解题思路:套个循环……注意事项:别抄我的,抄我的人我诅咒他电脑立刻关机参考代码:#include<bits/stdc++.h>#include<windows.h>using namespace st…… 题解列表 2024年02月23日 0 点赞 0 评论 514 浏览 评分:6.0
编写题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,jp=0,yp=0,tp=0,j,y,t…… 题解列表 2024年02月23日 0 点赞 0 评论 165 浏览 评分:0.0
家人们,这个题解超简单! 摘要:解题思路:将金银铜分别输入三次即可,并先输入比了多少天即可。注意事项:不能把a,b,c的输入写在外面。参考代码:#include <bits/stdc++.h>using namespace std;…… 题解列表 2024年02月23日 0 点赞 1 评论 205 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-买瓜 摘要:```java import java.util.Scanner; // 1:无需package // 2: 类名必须Main, 不可修改 public class Main { st…… 题解列表 2024年02月23日 0 点赞 0 评论 674 浏览 评分:0.0
冶炼金属--超快解法 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm>using namespace std;const int i…… 题解列表 2024年02月23日 0 点赞 0 评论 487 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-飞机降落(暴力枚举) 基于全排列函数next_permutation 摘要:解题思路:注意事项:有题目数据范围飞机数量 n<=10,可知本问题可对所有飞机的下落顺序进行全排(最大循环次数10!*10约为3e7,可过所有样例),得到得所以方案中有一种满足即为YES。即当得到一种…… 题解列表 2024年02月23日 0 点赞 2 评论 1469 浏览 评分:9.3
-X进制(python) 前缀和 摘要:解题思路: 取A和B中每位的最大值+1为其对应位数的进制(最小为2进制),计算完进制后可以利用前缀和思想储存每一位的权重,最后用每一位的权重乘以差值并相加计算结果。注意事项: 只在最后一步取模容易在…… 题解列表 2024年02月23日 0 点赞 0 评论 305 浏览 评分:0.0