1853--数列排序 摘要:解题思路:注意事项:参考代码:a=int(input())m=input().split()s=[]for i in range(0,len(m)): s.append(int(m[i]))s.…… 题解列表 2021年12月30日 0 点赞 0 评论 299 浏览 评分:0.0
[编程入门]字符串分类统计-题解(Python代码) 摘要:解题思路:注意事项:参考代码:s=input()A1=0A2=0A3=0A4=0for i in s: if (i>='A' and i<='Z')or(i>=&…… 题解列表 2021年12月29日 0 点赞 0 评论 477 浏览 评分:8.4
1772: [编程入门]二进制移位练习 摘要:解题思路:注意事项:参考代码:def two_to_ten(m): j = 0 sum =0 for i in str(m)[::-1]: sum +=…… 题解列表 2021年12月29日 1 点赞 0 评论 316 浏览 评分:0.0
C++代码纯手写,采用实参宏定义函数交换2个字符串。字符串两两比较,自定义函数for循环,遍历实现字符串逐位比较,返回大小比较结果,立刻交换即可。保证str1<=str2<=str3 摘要:也许会有朋友说写那么复杂干什么,直接调用一个库函数进行比较多方便。一些基本但复杂的东西,C/C++的乐趣就在此。用python直接调用库函数最简洁。解题思路:C++代码纯手写,采用实参宏定义函数交换2…… 题解列表 2021年12月29日 0 点赞 0 评论 711 浏览 评分:0.0
1771: [编程入门]链表之节点删除 摘要:解题思路:注意事项:参考代码:m,n = map(int,input().split()) a={} b={} c=[] for i in range(m): k,l = map(i…… 题解列表 2021年12月29日 0 点赞 0 评论 285 浏览 评分:2.0
python 一行代码 摘要:参考代码: print(" ".join(str(i) for i in(sorted(list(map(int,input().split()))))))用了三个python内置函数以及迭代输出…… 题解列表 2021年12月29日 0 点赞 0 评论 598 浏览 评分:9.9
1723: 求最大值-C语言 (归并排序) 摘要:```c //求最大值 #include #include void sort(int arr[], int temparr[], int left, int right); voi…… 题解列表 2021年12月29日 0 点赞 0 评论 362 浏览 评分:9.9
因同查找---for 摘要:解题思路:从10到1000注意事项:参考代码:#include <stdio.h>int main(){ int i=10; scanf("%d",&i); for (i=10;i<=1000;i++…… 题解列表 2021年12月29日 0 点赞 6 评论 935 浏览 评分:9.9
1674: 数据结构-有序线性表的有序合并-C语言 摘要:```c //有序线性表的有序合并 //思路是合并后对合并后的链表进行排序 #include #include typedef struct node { int data;…… 题解列表 2021年12月29日 0 点赞 0 评论 698 浏览 评分:9.9
1675: 数据结构-Big Bang-C语言 摘要:```c #include #include #include #define max 20 typedef struct node{ char name[max]; …… 题解列表 2021年12月29日 0 点赞 0 评论 353 浏览 评分:9.9