编写题解 1031: [编程入门]自定义函数之字符串反转(函数) ```c//自定义函数之字符串反转#include#includevoidStrInvers(){charc[100];//定义一个字符型数组//gets()函数用来从标准输入设备(键盘)读取字符串直到换行符结束,//但换行符会被丢弃,然后在末尾添加'\0'字符。 题解列表 2022年08月12日 0 点赞 0 评论 637 浏览 评分:6.9
c/c++方法 初学者思维 摘要:解题思路:注意事项:参考代码:void input() { char c; int letter = 0, space = 0, digit = 0, other = 0; while …… 题解列表 2022年08月12日 0 点赞 0 评论 718 浏览 评分:0.0
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=True) for i in a: print(i,…… 题解列表 2022年08月12日 0 点赞 0 评论 640 浏览 评分:9.9
混个经验值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) a=sorted(a,reverse=False) for i in a: print(i…… 题解列表 2022年08月12日 0 点赞 0 评论 701 浏览 评分: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 评论 741 浏览 评分: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 评论 653 浏览 评分: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 评论 1287 浏览 评分:0.0
矩阵对角求和 摘要:解题思路:1)矩阵使用二维数组num[][]来储存2)使用两个for循环输入数据3)主对角线的规律是i==j,副对角线的规律是i + j == 2注意事项:主副对角线的中间同时满足 i==j && i…… 题解列表 2022年08月12日 0 点赞 0 评论 572 浏览 评分: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 评论 427 浏览 评分:0.0
[编程入门]三个数最大值(c语言代码) 摘要:解题思路:使用两个if语句即可解答本题注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,max; scanf("%d%d%d",&a,&b,&c); …… 题解列表 2022年08月12日 0 点赞 0 评论 583 浏览 评分:0.0