题解列表
1307: 表达式计算1
摘要:```cpp
#include
using namespace std;
const int N=10001;
int a[N],b[N];
char op,k;
bool key,mar……
蓝桥杯2023年第十四届省赛真题-砍树(树上差分)
摘要:
# 解题思路
对于每一对 $$(a_i , b_i)$$,$$a_i$$ 到$$b_i$$之间的边都可以砍掉;
把可以砍掉的边权值+1,那么这条边的权值$$w$$表示砍掉这条边可以满足$$w$……
1009题: 数字的处理与判断
摘要:# 自己写的代码
```c
#include
#include
int main()
{
char a[5];
gets(a);
int len=strlen(a);
p……
1008题: 成绩评定
摘要:# 自己写的代码
```c
#include
int main()
{
int n;
while(~scanf("%d",&n)){
if(n>=90){
……
1007题: 分段函数求值(if-else)
摘要:# 自己写的代码
```c
#include
int main()
{
int x;
scanf("%d",&x);
if(x=1&&x……
蓝桥杯2023年第十四届省赛真题-平方差
摘要:解题思路:先查看数字的规律,再下手注意事项:x要么是4的倍数,要么是奇数参考代码:#include<stdio.h>int panduan(int x){ if(x%4==0) return 1; ……
1006题: 三个数找最大值(数组的思路)
摘要:# 自己写的代码
```c
#include
int main()
{
int a[3];
int temp;
gets(a);
for(int i=0;ia[i+1]){……
编写题解 2797: 最高的分数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n]; for(int i=0……
1005题: 温度转换
摘要:# 自己写的代码
```c
#include
int main()
{
float n;
scanf("%f",&n);
printf("c=%.2f",5*(n-32)/9);
……