直接输出值,不存数组 摘要:解题思路:只需要找到每一行第一个数是多少,2个数之间相差多少即可拿N=5举例 1 3 6 10 15 前一个和后一个数之间相差为 2 3 4 5 2 5 9 14 第二行为 3…… 题解列表 2022年11月21日 0 点赞 0 评论 323 浏览 评分:9.9
C语言 三个数字的排序& 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define Long 3 //改变Long的值,能输入更多的数并排…… 题解列表 2022年11月21日 0 点赞 0 评论 308 浏览 评分:9.9
计算鞍点----通俗易懂好理解 摘要:解题思路: 对输入的数字形成的矩阵进行横向变量,找出其中的最大值,随后对该行进行竖向遍历,找出在横向最大的数在该列是否为最小,通过计数器进行判断是否为最小。参考代码:#include <stdio.h…… 题解列表 2022年11月22日 0 点赞 2 评论 737 浏览 评分:9.9
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int c,w=0,x=0,y=0,z=0; char a[200]; while((c=getchar())!…… 题解列表 2022年11月22日 0 点赞 0 评论 300 浏览 评分:9.9
自定义函数之字符串提取-详细明白 摘要:参考代码:# include <stdio.h># include <string.h>int f(char str1[], char str2[]){ int i, len, j = 0; …… 题解列表 2022年11月22日 0 点赞 0 评论 324 浏览 评分:9.9
自定义函数之字符类型统计(C语言) 摘要:解题思路:注意事项:参考代码:# include <stdio.h># include <string.h>int main(){ char a[100]; int len, x, y, …… 题解列表 2022年11月22日 0 点赞 0 评论 330 浏览 评分:9.9
废话不多说,看代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m,i,j; scanf("%d%d",&n,&m); int a[n+m],b…… 题解列表 2022年11月22日 0 点赞 0 评论 398 浏览 评分:9.9
这学生难道不得用我的ojbk函数(微笑) 摘要:代码附在下面,函数在下面 根据不及格为假,及格为真,***采用异或***,不同输出真,相同输出假,刚好符合题意。 #include int main(void) {…… 题解列表 2022年11月22日 0 点赞 1 评论 573 浏览 评分:9.9
两行代码完成 摘要:解题思路:注意事项:参考代码:x=input()print(x[::-1])#使用列表切片的方法直接倒序输出…… 题解列表 2022年11月22日 1 点赞 1 评论 351 浏览 评分:9.9
宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include <stdio.h># define f(a, b, c) max = a>b?(b>c?a:(a>c?a:c)) : (b<c?c:b) int …… 题解列表 2022年11月22日 0 点赞 0 评论 302 浏览 评分:9.9