题解列表
K-进制数-题解(C++代码)
摘要:解题思路:利用深度优先搜索的方法 判断首位不能为零 并且不能存在 多个零相挨的情况(看完大佬写的我最初开始写的 直接求[k^(n-1),k^n] 区间满足条件的个数 但是在判断是否存在多个零……
字符串的输入输出处理-题解(C语言代码)
摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,i=0; char a[100][1000]; cin>>n; ge……
蓝桥杯算法提高VIP-复数求和-题解(C语言代码)
摘要:```c
#include
#include
typedef struct fushu
{
int shi;
int xu;
struct fushu* next……
数据结构-链表的基本操作-题解(C语言代码)
摘要:```c
#include
#include
#include
typedef struct LinkNode
{
int data;
struct LinkNode* ……
蓝桥杯算法提高VIP-输出正反三角形-题解(C语言代码)
摘要:解题思路:注意事项:参考代码:#include"iostream"using namespace std;int main(){ int x,y; int a,b,c,d; int i,j; cin>……
蓝桥杯2014年第五届真题-分糖果-题解(C++代码)
摘要:解题思路:用一个数组存储各个学生手中糖果的初始数量 用for循环对每个同学手中的糖果进行自身减半同时加上右边同学手中糖果的一半。fun()函数是用来判断数组中的元素是否完全相等注意事项:在计算最后一个……
[竞赛入门]简单的a+b-题解(C语言代码)
摘要:```c
#include
void main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF)
printf("%d\n",a+b);
}……