两种方式表示列表最后一个元素 摘要:解题思路:注意事项:参考代码:方法一:a=list(map(int,input().split())) b=len(a) while a[b-1]!=-1: a.extend(list(…… 题解列表 2022年08月13日 0 点赞 0 评论 596 浏览 评分:9.9
蓝桥杯2013年第四届真题-买不到的数目(C++) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main() { int m, n, i, cnt = 0; …… 题解列表 2022年08月12日 0 点赞 0 评论 484 浏览 评分:0.0
编写题解 1032: [编程入门]自定义函数之字符串连接(函数) 摘要:1.gets()函数用来从标准输入设备(键盘)读取字符串直到换行符结束,但换行符会被丢弃,然后在末尾添加'\0'字符。gets(c)将读取的字符串保存到c[]中。 2.puts()函数把字符串输出到…… 题解列表 2022年08月12日 0 点赞 0 评论 631 浏览 评分:8.0
编写题解 1031: [编程入门]自定义函数之字符串反转(函数) 摘要:```c //自定义函数之字符串反转 #include #include void StrInvers(){ char c[100];//定义一个字符型数组 //gets()函数…… 题解列表 2022年08月12日 0 点赞 0 评论 469 浏览 评分:6.9
c/c++方法 初学者思维 摘要:解题思路:注意事项:参考代码:void input() { char c; int letter = 0, space = 0, digit = 0, other = 0; while …… 题解列表 2022年08月12日 0 点赞 0 评论 582 浏览 评分:0.0
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=True) for i in a: print(i,…… 题解列表 2022年08月12日 0 点赞 0 评论 510 浏览 评分:9.9
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=False) for i in a: print(i…… 题解列表 2022年08月12日 0 点赞 0 评论 577 浏览 评分:9.9
这个程度为啥是中等题? 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split()) c=0 for i in range(a,b+1): if i%3==1 and i%5==3: …… 题解列表 2022年08月12日 0 点赞 0 评论 580 浏览 评分:9.9
地宫取宝DP解法 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int N=60,mod=1e9+7; int f[N][N][13][…… 题解列表 2022年08月12日 0 点赞 0 评论 510 浏览 评分:9.9
[编程入门]三个数最大值(c++代码) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,c,max; cin>>a>>b>>c; if(a>max) max=a;…… 题解列表 2022年08月12日 0 点赞 0 评论 1169 浏览 评分:0.0