2025/8/3刷题记录 摘要:解题思路:外层循环通过n控制循环累加次数 内存循环求每次外层循环的n! e进行每一次结果的累加注意事项:参考代码:#include<stdio.h>int main(){&nb…… 题解列表 2025年08月03日 0 点赞 0 评论 109 浏览 评分:0.0
2025/8/3刷题记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d&qu…… 题解列表 2025年08月03日 0 点赞 0 评论 81 浏览 评分:0.0
2025/8/3刷题记录 摘要:解题思路:通过sum记录累加和 int c记录原始b b=a+b后保证 a能赋值原始b注意事项:参考代码:#include<stdio.h>int main(){ …… 题解列表 2025年08月03日 0 点赞 0 评论 83 浏览 评分:0.0
C语言写这题不能用scanf 摘要:解题思路:注意事项:测试的数据中有空格,使用scanf不能识别空格。要使用gets或者别的支持空格的。参考代码:```c#include<stdio.h>#include&…… 题解列表 2025年08月02日 1 点赞 0 评论 120 浏览 评分:10.0
编写题解 2954: 大整数乘法(注释清晰 简单易懂) 摘要: #include #include #include // 反转字符串 void reverseString(char *str) { int len = st…… 题解列表 2025年08月02日 0 点赞 0 评论 99 浏览 评分:0.0
简洁且严谨的C语言解法(纠高分答案) 摘要:解题思路: 多层嵌套for循环,目测是最简洁的思路之一注意事项:七进制和九进制对三位数都有要求,取小的七进制(交集),三个数都小于等于6.注意位置,由于a和c都做过3位数的最高位,所以其范围都是从1开…… 题解列表 2025年08月02日 1 点赞 0 评论 137 浏览 评分:10.0
2799 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,gold,silver,bronze,sum=0,sum_go…… 题解列表 2025年08月02日 0 点赞 0 评论 85 浏览 评分:0.0
斐波那契数列C语言简单解法(带注释) 摘要:解题思路: 简单递推+利用斐波那契数列前2项都是1的特点取巧,直接初始化第k项为1注意事项: 循环内i要从3开始参考代码:#include<stdio.h>intmain(…… 题解列表 2025年08月02日 1 点赞 0 评论 119 浏览 评分:10.0
牛棚回声(模拟) 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){…… 题解列表 2025年08月02日 0 点赞 0 评论 69 浏览 评分:0.0
2798 整数序列的元素最大跨度值 摘要:解题思路:求整数序列的最大跨度值(最大值减去最小值)注意事项:最大值用 if(x > max),最小值用 if(x < min)最小值初始化为“很大”,最大值初始化为“很小”参考代码:#i…… 题解列表 2025年08月02日 0 点赞 0 评论 64 浏览 评分:0.0