大整数减法(使用指针递减输出结果) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> #define MAXSIZE 200 int main() { char a[MA…… 题解列表 2023年10月19日 0 点赞 0 评论 255 浏览 评分:0.0
利用double求解 摘要:参考代码:#include<stdio.h>#include<math.h>int main(void){double C,F;scanf("%lf",&F);C=(5*(F-32))/9;print…… 题解列表 2023年10月20日 0 点赞 0 评论 292 浏览 评分:0.0
大整数的因子(注意高位的余数) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void m(int *a1,char a[],int len_a)//a1用指针传递回主函…… 题解列表 2023年10月20日 0 点赞 0 评论 323 浏览 评分:0.0
0~1000以内的水仙花数的判断 摘要:解题思路:通过将整数分别分解为100、10、1的倍数,然后将这些因数进行重组,若能按照水仙花数的规则重组成功,即为水仙花数。注意事项:看了一下其他人的解法,发现若不设变量的话,容易使代码看起来比较冗长…… 题解列表 2023年10月20日 0 点赞 0 评论 304 浏览 评分:0.0
使用C++STL库中的优先队列 摘要:解题思路:使用C++中的STL库中的优先队列,使用结构体定义一个比较函数进行排序,之后在主函数中使用优先队列输出注意事项:注意结构体里边比较逻辑的写法,这是容易出错的地方参考代码:#include<i…… 题解列表 2023年10月20日 0 点赞 0 评论 264 浏览 评分:0.0
编写题解 1671: 小九九 摘要:````python for i in range(1,10): for j in range(1,10): if i>=j: print("{1}…… 题解列表 2023年10月20日 0 点赞 0 评论 334 浏览 评分:0.0
验证子串(二种方法) 摘要:解题思路:注意事项:参考代码:第一种强行解题,硬解:#include<stdio.h> #include<string.h> int main() { char a[200]; char…… 题解列表 2023年10月21日 0 点赞 0 评论 498 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 代码简单!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n; int num=0; //记三元组的个数 scanf ("%d",&n);…… 题解列表 2023年10月21日 1 点赞 0 评论 332 浏览 评分:0.0
2973: 出现次数超过一半的数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tong[1005];int main(){ int n; c…… 题解列表 2023年10月21日 0 点赞 0 评论 406 浏览 评分:0.0
2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tong[1005];int main(){ int n; c…… 题解列表 2023年10月21日 0 点赞 0 评论 229 浏览 评分:0.0