题解列表
自定义函数之字符类型统计c++,不含指针
摘要:#include<stdio.h>
#include<string.h>
int b=0,c=0,d=0,e=0;
char a[1000];
void cata(char a[])
{
……
1102: 明明的随机数
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;set<int>st;int main(){ int n,m; cin……
密码破译(C语言新手)
摘要:解题思路:根据ASCII码表可知,只需将它们的数值加4即可得到想要的数据注意事项:参考代码:#include <stdio.h>int main(){ char a,b,c,d,e; scanf("%……
三个数最大值(C语言新手)
摘要:解题思路:用的if else语句嵌套注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(……
2863: 删除单词后缀(暴力解法)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; scanf("%s",a); i……
使用数组和for循环来便捷解题
摘要:注意本题需要使用到课程第五章的循环和第六章的数组,如果是有基础的同学就可以直接看了参考代码:#include<stdio.h>#include<string.h>int main(){ int ……
太太太太太太太太太太对啦
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; scanf("%d",&x); if(x%2 == 0) prin……
题解 3142: 蓝桥杯2023年第十四届省赛真题-平方差(数学证明正解+打表找规律)
摘要:### 数学证明:
对于偶数和奇数分别有如下证明:
对任意偶数可以表示为:2*k,其中k为正整数。假如该偶数满足题目条件:x = y^2-z^2,即2*k = (y + z) * (y -……