题解列表
数组实现(数组的本质也是指针)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){ intn,a[100]; ……
蓝桥杯2024年第十五届决赛真题-兔子集结
摘要:解题思路:将兔子分为两种(1.它和它的同伴相向而行 2.它和它的同伴不相向而行)。不难发现最后兔子的位置都位于第一种(它和它的同伴相向而行)兔子最后的位置上。所以我们可以首先确定第一种兔子……
1014解题方法及答案
摘要:解题思路:注意事项:与许多优质题解一样,将int型数据改为long long int型即可。参考代码:#include<stdio.h>#include<math.h>int ……
链表数据求和操作(作代码记录用)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>typedef struct……
1013,for循环解决
摘要:#######includeint main(){ int a=2,n,term=0,sum=0,i; scanf("%d",&n); for(i=1;i……
C语言训练-字符串正反连接(c)
摘要:#include <stdio.h>#include <string.h>int main(){ char a[120]; int x,j=0,i; gets(a); x=st……
IP判断,简单易懂,看不懂我吃kfc
摘要:解题思路:调用#include<stdlib.h>里的sscanf注意事项:int sscanf(const char *str, const char *format, ...);str……
题目 1010: [编程入门]利润计算
摘要:解题思路:读题看清题目要求在用if语句做判断注意事项:计算条件一定要看清参考代码:#include"stdio.h"void main(){ int l; ……
编写题解 2946: 数制转换
摘要:```cpp#include using namespace std;typedef long long ll;char s[1000];int a[1000], cnt;in……