list.index()列表的函数不记得怎么办 摘要:解题思路:注意事项:参考代码:n=input()l=list(map(int,input().split()))m=max(l)print(l.index(m)+1)#学会使用列表的函数…… 题解列表 2023年05月05日 0 点赞 0 评论 299 浏览 评分:9.9
终于也是会了这么经典的题目 摘要:解题思路:注意事项:偶数灯是开着,奇数灯是开着,其实不难啊,换个思路,一定要有思考的抽象的计算思维参考代码:n,m=map(int,input().split())l=[0 for i in rang…… 题解列表 2023年05月05日 0 点赞 0 评论 330 浏览 评分:0.0
绝对值排序!!!一看就懂 摘要:解题思路:1.首先输入要输入的行数(遇到0结束)我们与n相与,当n=0时,跳出循环。2.我们把我们要写入的数据放入我们定义的的数组里面,然后对数组进行排序。注意事项:注意换行参考代码:#include…… 题解列表 2023年05月05日 0 点赞 0 评论 203 浏览 评分:9.9
[编程入门]求和训练 摘要:一、解题思路:C参考代码:#include <stdio.h> int main() { double a, b, c, s1 = 0, s2 = 0, s3 = 0, s = 0; s…… 题解列表 2023年05月05日 0 点赞 0 评论 134 浏览 评分:0.0
[编程入门]阶乘求和 摘要:一、解题思路:for()循环C参考代码:#include int main() { long long Sn = 0, a = 1; //long long类型,占位符是%lld int n…… 题解列表 2023年05月05日 0 点赞 0 评论 143 浏览 评分:0.0
[编程入门]Sn的公式求和 摘要:一、解题思路:for()循环C参考代码:#include <stdio.h> int main(){ int n,a=2,s=0,sn=0; scanf("%d",&n);…… 题解列表 2023年05月05日 0 点赞 0 评论 198 浏览 评分:0.0
[编程入门]字符串连接 摘要:解题思路:将字符串输入后,使用puts()函数进行输出,在输出a后自动回车,得到结果不符;将字符串a单个输出后输出b注意事项:gets当遇到换行符\n或者EOF时停止参考代码:#include<std…… 题解列表 2023年05月04日 0 点赞 0 评论 189 浏览 评分:0.0
自定义函数之字符串反转 摘要:#include #include int main(){ char a[100]; int i,j; gets(a);//从输入缓存中读取多个字符,遇到回车符时,结…… 题解列表 2023年05月04日 0 点赞 0 评论 187 浏览 评分:0.0
3144: 蓝桥杯2023年第十四届省赛真题-颜色平衡树 摘要:```cpp #include #include #include using namespace std; const int N=2e5+1; int n,m,Son,cnt[N],c…… 题解列表 2023年05月04日 0 点赞 0 评论 1927 浏览 评分:9.0
3143: 蓝桥杯2023年第十四届省赛真题-更小的数 摘要:```cpp #include using namespace std; string a; int ans; int main() { cin>>a; for(int…… 题解列表 2023年05月04日 0 点赞 0 评论 1026 浏览 评分:8.9