比较字符串(嘿嘿,这题嘛,其实可以输出strcmp的返回值的,返回值就是字典序差) 摘要:解题思路: 怎么说,是不是很方便 参考代码: ```c #include #include int main() { char s1[101],s2[101]; scanf("%…… 题解列表 2023年12月21日 0 点赞 0 评论 129 浏览 评分:0.0
递归函数法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int b[5],i=0,mask2=1,n=0;int fun(int a ,int w){ if…… 题解列表 2023年12月21日 0 点赞 0 评论 117 浏览 评分:0.0
题解 1016: [编程入门]水仙花数判断 C语言 摘要:解题思路:注意事项:主要考察位数分解参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ int num = 0, i…… 题解列表 2023年12月22日 0 点赞 0 评论 96 浏览 评分:0.0
题解 1018: [编程入门]有规律的数列求和 C语言 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ int n, temp; double…… 题解列表 2023年12月22日 0 点赞 0 评论 88 浏览 评分:0.0
题解 1019: [编程入门]自由下落的距离计算 C语言解法 摘要:解题思路:注意事项:注意减去重复计算的高度,总高度要计算弹起高度参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ …… 题解列表 2023年12月22日 0 点赞 0 评论 115 浏览 评分:0.0
题解 1671: 小九九 C语言 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ for (int i = 1; i <= 9…… 题解列表 2023年12月22日 0 点赞 0 评论 103 浏览 评分:0.0
利用循环解决(C++) 摘要:解题思路:注意事项:注意sum和Sn需要long long 类型,不然会超界参考代码:#include<iostream>using namespace std;int main(){ int …… 题解列表 2023年12月22日 0 点赞 0 评论 139 浏览 评分:0.0
数组存储,循环相除(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int arr[3] = { 0 …… 题解列表 2023年12月22日 0 点赞 0 评论 152 浏览 评分:0.0
一个递归解决 摘要:解题思路:F_2是分子,F_1是分母注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std; double F_2(int n…… 题解列表 2023年12月22日 0 点赞 0 评论 133 浏览 评分:0.0
利用循环实现等比数列 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;//一球从M米高度自由下落,每次落地后返回原高度的一半,再落…… 题解列表 2023年12月22日 0 点赞 0 评论 113 浏览 评分:0.0