蓝桥杯2019年第十届省赛真题-修改数组(路径压缩+卡cin问题) 摘要:解题思路:类似于并查集的思想进行路径压缩注意事项:参考代码:AC代码#includeusing namespace std;int used[1000005], n, num;int findnext…… 题解列表 2021年11月04日 0 点赞 0 评论 828 浏览 评分:9.9
确实送分题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("Hello dotcpp\n"); return 0;}…… 题解列表 2021年11月04日 0 点赞 0 评论 524 浏览 评分:9.9
不用数组,容易理解(c语言代码) 摘要:#include<stdio.h> int main() { int n,k=0; scanf("%d",&n); while(n) { …… 题解列表 2021年11月04日 0 点赞 0 评论 564 浏览 评分:9.9
[编程入门]三个数找最大值---两种方法---(Python) 摘要:Python 1.通过max求最大值: ```python list=list(map(int,input().split())) print(max(list)) ``` 2.通过if-…… 题解列表 2021年11月04日 0 点赞 0 评论 1629 浏览 评分:9.9
1954-话费计算,简单易懂(C++) 摘要:解题思路:列出关于通话分钟和话费的函数,进行求解注意事项:基础知识的应用参考代码:#include<stdio.h>int main(){ int x; float y; scanf("%d",&x)…… 题解列表 2021年11月04日 0 点赞 0 评论 745 浏览 评分:9.9
计算球体积优质题解 摘要:2021-11-04解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define pa 3.1415926525int main(){ doubl…… 题解列表 2021年11月04日 0 点赞 0 评论 587 浏览 评分:9.9
C++ STL Vector + 二分查找 摘要:解题思路: lower_bound:查找第一个大于或等于某个元素的位置。 upper_bound:查找第一个大于某个元素的位置。代码:#include<bits/stdc++.h> us…… 题解列表 2021年11月04日 0 点赞 1 评论 962 浏览 评分:9.9
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码: def yue(a,b): min =(a<b and a or b) i=min while i>0: if a%i==0 and…… 题解列表 2021年11月04日 0 点赞 1 评论 796 浏览 评分:9.9
计算数字个数---详细讲解---(Python) 摘要:Python 通过遍历字符串判断字符是否为数字 ```python n=input() s=0 for i in n: if i.isdigit(): s=s+1…… 题解列表 2021年11月04日 0 点赞 0 评论 766 浏览 评分:9.9
结构体解题(c语言代码) 摘要:#include <stdio.h> #include <string.h> struct stu { char s[20]; int f; }; int main() { i…… 题解列表 2021年11月04日 0 点赞 0 评论 855 浏览 评分:9.9