题解列表
骗分?(不知道这题本意是该用什么方法(x_x))
摘要:解题思路:
- 注意题目多组输入是指有着给的样例那样的多组,
- 一眼看去似乎是从左到右挨个比较,但给的数据好像很大,老超时,就想着能不能每次遍历两个元素,一个指向开头,一个指向数组中间,详细的看……
编写题解 2816: 统计满足条件的4位数个数
摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<math.h>int main(){ int n,k=0; scanf("%d",&n); int a……
编写题解 2819: 数字反转(while循环)超简单方法!
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,f=0; scanf("%d",&n); while(n!=0){ f=f*……
密码破译(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(……
蓝桥杯2024年第十五届省赛真题-前缀总分
摘要:```cpp
#include
#include
using namespace std;
int n;
int lcp(const string &a,const stri……
C++2784开瓶盖赢大奖题解
摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a;cin >>a; if (a>=10||a>=20) { ……
如何用C语言结构体解决谁拿了最多奖学金
摘要:解题思路:用结构体代表学生的信息,通过函数得到每个学生的奖学金,在进行对比。注意事项:认真即可参考代码:#include <stdio.h>//定义结构体,totalbons是每个学生的奖学金。str……