编写题解 1032: [编程入门]自定义函数之字符串连接(函数) 摘要:1.gets()函数用来从标准输入设备(键盘)读取字符串直到换行符结束,但换行符会被丢弃,然后在末尾添加'\0'字符。gets(c)将读取的字符串保存到c[]中。 2.puts()函数把字符串输出到…… 题解列表 2022年08月12日 0 点赞 0 评论 577 浏览 评分:8.0
编写题解 1031: [编程入门]自定义函数之字符串反转(函数) 摘要:```c //自定义函数之字符串反转 #include #include void StrInvers(){ char c[100];//定义一个字符型数组 //gets()函数…… 题解列表 2022年08月12日 0 点赞 0 评论 424 浏览 评分:6.9
c/c++方法 初学者思维 摘要:解题思路:注意事项:参考代码:void input() { char c; int letter = 0, space = 0, digit = 0, other = 0; while …… 题解列表 2022年08月12日 0 点赞 0 评论 533 浏览 评分:0.0
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=True) for i in a: print(i,…… 题解列表 2022年08月12日 0 点赞 0 评论 469 浏览 评分:9.9
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=False) for i in a: print(i…… 题解列表 2022年08月12日 0 点赞 0 评论 517 浏览 评分: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 评论 500 浏览 评分: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 评论 436 浏览 评分: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 评论 1113 浏览 评分:0.0
矩阵对角求和 摘要:解题思路:1)矩阵使用二维数组num[][]来储存2)使用两个for循环输入数据3)主对角线的规律是i==j,副对角线的规律是i + j == 2注意事项:主副对角线的中间同时满足 i==j && i…… 题解列表 2022年08月12日 0 点赞 0 评论 383 浏览 评分:0.0
题解 1023: [编程入门]选择法排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[10],b; for(i=0; i<10; i++)//读取十个数 { …… 题解列表 2022年08月12日 0 点赞 0 评论 257 浏览 评分:0.0