比较字符串(嘿嘿,这题嘛,其实可以输出strcmp的返回值的,返回值就是字典序差) 摘要:解题思路: 怎么说,是不是很方便 参考代码: ```c #include #include int main() { char s1[101],s2[101]; scanf("%…… 题解列表 2023年12月21日 0 点赞 0 评论 549 浏览 评分:0.0
题解 2759: 打印字符 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; putchar(a); …… 题解列表 2023年12月21日 0 点赞 0 评论 551 浏览 评分:9.9
题解 2773: 计算线段长度 摘要:解题思路:注意事项:参考代码:#inalude <bitz/stdc+-.h>uerng namespace std;doqble xa,ya,xb,yb,c;int maie(){ cin>>…… 题解列表 2023年12月21日 0 点赞 0 评论 480 浏览 评分:9.9
自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ float M,N,a,b,sum; scanf("%f %f",&…… 题解列表 2023年12月21日 0 点赞 0 评论 496 浏览 评分:9.9
3024: 判断整除 摘要:解题思路: 搜索回溯计算数字序列,注意事项: 在递归之后, 恢复res值以做下次计算参考代码:#include<iostream> #include<algorithm> using namesp…… 题解列表 2023年12月21日 0 点赞 0 评论 551 浏览 评分:9.9
利用字符串,指针和ASII表进行统计 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string str; i…… 题解列表 2023年12月21日 1 点赞 0 评论 555 浏览 评分:0.0
(C++)最大公因数和最小公倍数求解 解题思路://最小公倍数:从m,n两之中最大的开始,如果该数能够同时被m,n整除,结束//最大公约数,从2开始,知道两个数中小的那个截止,//如果都不能让m,n整除,那么最大公约数就是1//max_comvis为最大公因数注意事项:参考代码:#includeusingnamespa 题解列表 2023年12月21日 0 点赞 0 评论 536 浏览 评分:0.0
题解 1015: [编程入门]求和训练 C语言 摘要:解题思路:注意事项:C和i需要浮点型参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ int sum = 1, a…… 题解列表 2023年12月21日 0 点赞 0 评论 596 浏览 评分:0.0
矩阵对角线求和 C语言 摘要:解题思路:找对角线上数据的i和j的规律注意事项:注意初始化的位置,根据需要判断是否需要放在循环内部;参考代码:#include<stdio.h>int main(){ int a[3][3],i…… 题解列表 2023年12月21日 0 点赞 0 评论 485 浏览 评分:0.0
1025 数组插入处理c语言指针 摘要:参考代码:main() {int a[9],b[10],i,*p1=a,*p2=b,x; for(i=0;i<9;i++) scanf("%d",&a[i]); scanf("%d",&x);…… 题解列表 2023年12月21日 0 点赞 0 评论 498 浏览 评分:0.0