题解 1036: [编程入门]带参数宏定义练习 摘要:###思路 `swap(a,b);` ###代码 ```cpp #include using namespace std; int main(){ int a,b; cin>>a>…… 题解列表 2024年02月07日 1 点赞 0 评论 543 浏览 评分:9.9
题解 1037: [编程入门]宏定义的练习 摘要:##思路 `a%b`即可。 ##代码 ```cpp #include using namespace std; int main(){ int a,b; cin>>a>>b; …… 题解列表 2024年02月07日 0 点赞 1 评论 407 浏览 评分:9.9
蓝桥杯算法提高VIP-单词个数统计 摘要:解题思路:注意事项: 1.string.h文件和strlen函数。 2.fgets函数:应该大家用C语言输入字符串时,用fgets函数,gets函数差不多已…… 题解列表 2024年02月07日 0 点赞 0 评论 338 浏览 评分:0.0
堆优化版的Dijskra 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<queue> #include<vector> #include<cstring> using nam…… 题解列表 2024年02月07日 1 点赞 0 评论 349 浏览 评分:10.0
蓝桥杯算法提高VIP-剪刀石头布(C语言) 摘要:解题思路:注意事项: 枚举函数:enum 1.如果枚举函数中没进行赋值,则第一个元素默认值为0,随后的值“加1”递增; & 题解列表 2024年02月07日 0 点赞 0 评论 436 浏览 评分:0.0
【前缀和+二分查找】 摘要:解题思路:一.定义sum数组用来存刷题数小于i的人数运用前缀和二.如果小于i题的人数小于大于i题的人数那么必须在刷i+1,max题里找,看看到底刷到多少题才能躺的人大于等于卷的人如果大于等于则不需要再…… 题解列表 2024年02月07日 1 点赞 0 评论 585 浏览 评分:9.0
c++(不涉及过多语法,简单易懂) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int solve(int n) { int sum=0,ans…… 题解列表 2024年02月07日 0 点赞 0 评论 340 浏览 评分:9.9
一种值得借鉴的写法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10][2]={0},b=1,num; a[0][0]=1189; a[0][1]=841; for…… 题解列表 2024年02月07日 0 点赞 0 评论 328 浏览 评分:0.0
C语言训练-排序问题(1) 摘要:解题思路: 用快速排序函数qsort注意事项: 注意头文件stdlib.h参考代码:#include<stdio.h& 题解列表 2024年02月07日 1 点赞 0 评论 323 浏览 评分:0.0
C语言训练-排序问题(2) 摘要:解题思路: 用qsort函数快速排序,打好基础,方便以后的解题。注意事项: 记得用stdlib.h头文件参考代码:#incl 题解列表 2024年02月07日 0 点赞 0 评论 288 浏览 评分:0.0