明明的随机数-题解(Python代码) 摘要:思路解析: 1、用map()高阶函数解决输入问题; 2、使用集合特性去重; 3、列表函数直接排序; 4、注意不输出最后一个空格; ```python #1102: 明明的随…… 题解列表 2019年09月02日 0 点赞 1 评论 2758 浏览 评分:6.0
蓝桥杯算法提高- c++_ch02_02-题解(C++代码) 摘要: #include #include using namespace std; int main() { int a,b;…… 题解列表 2019年09月03日 0 点赞 0 评论 617 浏览 评分:6.0
数据结构-集合union-题解(Java代码) 摘要:import java.util.Scanner; class Node{ public int num; public Node next; Node(int num,Node nod…… 题解列表 2019年09月04日 0 点赞 0 评论 930 浏览 评分:6.0
STL库中set(红黑树)的用法 摘要:STL库中set的用法可以自行百度; set的插入,删除和查看的时间复杂度是哦o(logN)的 ```cpp #include #include #include #include #i…… 题解列表 2019年09月05日 0 点赞 0 评论 1115 浏览 评分:6.0
C语言训练-"水仙花数"问题1-题解(Python代码) 摘要:题目给出了“水仙花数”的定义,直接对输入数据进行验证即可。 ```python x=input() print(1 if int(x)==int(x[0])**3+int(x[1])**3+in…… 题解列表 2019年09月07日 0 点赞 0 评论 1079 浏览 评分:6.0
[编程入门]三个字符串的排序-题解(C语言代码) 摘要:#include #include void swap(char *str,char *str1); int main() { char str1[100]; char s…… 题解列表 2019年09月08日 0 点赞 1 评论 603 浏览 评分:6.0
虚张声势-题解(Python代码) 摘要:虽说笔者也不知道这道题跟其博弈论的标签有什么关系,但是还是先练习一下吧。 然而这其实就是一个计数问题。 ```python alphabet='qwertyuiopasdfghjklzxcvbn…… 题解列表 2019年09月10日 0 点赞 0 评论 1190 浏览 评分:6.0
[编程入门]字符串分类统计 (Java代码) 摘要:解题过程: 1.先把输入的字符串转化为字符数组 这样更容易查找判断 2.然后找出字符数组的长度 for循环 进行if判断 (本处可以直接用ascll码来进行if条件判断) 特别注意:java中在…… 题解列表 2019年09月10日 0 点赞 0 评论 764 浏览 评分:6.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:#include"stdio.h" int main() { int a,j,i,item=10000,b,number; scanf("%d",&a); numb…… 题解列表 2019年09月11日 0 点赞 0 评论 692 浏览 评分:6.0
循环-题解(C语言代码) 摘要: #include"stdio.h" #include"math.h" #include"string.h" int a[100]={0}; int b[…… 题解列表 2019年09月14日 0 点赞 0 评论 1100 浏览 评分:6.0