reverse()函数逆序 摘要:解题思路:运用<algorithm>里面的头文件reverse来逆序注意:reverse( 首地址,尾地址 + 1 )先举个小例子吧!下面是本题代码!!给个评论吧!…… 题解列表 2022年01月27日 0 点赞 0 评论 679 浏览 评分:0.0
python 容易理解 摘要:解题思路:注意事项:参考代码:ls =list(map(int,input().split()))while ls[0] != 0: lt = ls[1:] b=[] for i i…… 题解列表 2022年01月27日 0 点赞 0 评论 400 浏览 评分:0.0
python-概率计算 摘要:解题思路:动态规划建立数组dp = [max(n,a,b,x)+1][(n+1)] 注意这里不要直接写成dp = [x+1][n+1],因为在后面的计算中数组可能会越界,没修改前题测为91分其…… 题解列表 2022年01月27日 0 点赞 0 评论 798 浏览 评分:0.0
母牛的故事 (结构体解决) 摘要:解题思路:注意事项:参考代码:#include "stdio.h"typedef struct shape { int sum; int age;} shape;int main() { int i=…… 题解列表 2022年01月27日 0 点赞 0 评论 356 浏览 评分:0.0
蓝桥杯基础练习VIP-Huffuman树——STL 摘要: 思路:利用multisetd的有序性和自带的删除插入的操作,模拟题意 例如: set.inser(x) 向set中插入一个数x; set.erase(x) 若x为迭代器则删去指向的数…… 题解列表 2022年01月27日 0 点赞 2 评论 426 浏览 评分:9.9
python-判断名次 摘要:解题思路:注意事项:参考代码:from itertools import permutations def f(): rst = tuple(permutations(&#…… 题解列表 2022年01月27日 0 点赞 0 评论 556 浏览 评分:2.0
[编程入门]自定义函数之字符提取(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int fun(char x[],char b[]){ int n,l,j=0; …… 题解列表 2022年01月27日 0 点赞 0 评论 445 浏览 评分:9.9
编写题解 1131: C语言训练-斐波纳契数列 摘要:```python l=[1,1] n=int(input()) if n==1: print(l[0]) elif n==2: print('{} {}'.format(…… 题解列表 2022年01月27日 0 点赞 1 评论 517 浏览 评分:9.9
1156: C语言训练-阿姆斯特朗数 摘要:解题思路:注意事项:提交答案,显示基本正确,格式错误,没看出格式有什么问题。参考代码:#include<stdio.h>int n,m,a,b,c;void fun1(){ for(n=999;…… 题解列表 2022年01月27日 0 点赞 0 评论 604 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int fun(char x[],char y[]){ strcat(x,y);}int m…… 题解列表 2022年01月27日 0 点赞 0 评论 688 浏览 评分:7.3