数字的处理与判断(C语言)简单方法(最笨方法),一看就会 摘要:解题思路:运用两个 for分别将位数和每位上的数求出,然后用数组将每位上的数保存。注意事项:读好题目要求。参考代码:#include <stdio.h>int main(){ int i; …… 题解列表 2021年09月25日 0 点赞 0 评论 314 浏览 评分:0.0
简单的字符串(c语言代码)【每行都有详细注释】【思路清晰代码简洁简单易懂】 摘要:解题思路:单指针检测注意事项:cnt初始值为1;字符串s大小需要留出‘\0’的位置;记得换行;cnt==1时不输出cnt;pos记得移动,否则会死循环。参考代码:#include <stdio.h>…… 题解列表 2021年09月25日 0 点赞 0 评论 410 浏览 评分:9.9
字符串的修改(c语言代码)一次就过了,逻辑很清晰 摘要:参考代码:#include <stdio.h> #include <string.h> void swap(char *a, char *b) { char tmp[201]; …… 题解列表 2021年09月25日 0 点赞 2 评论 785 浏览 评分:9.0
1454蚂蚁感冒 摘要:解题思路: 首先将蚂蚁位置按照绝对值从小到大排序。将蚂蚁碰撞掉头问题等效问传过问题,若碰撞的蚂蚁中其中一只感冒,相当于与另一只相互穿过身体,而后两只蚂蚁均感冒。未感冒的蚂蚁碰撞同理。于是,感冒的蚂蚁总…… 题解列表 2021年09月25日 0 点赞 0 评论 303 浏览 评分:0.0
蓝桥杯2014年第五届真题-分糖果(C语言代码)【模块化处理】 摘要:参考代码:#include <stdio.h> #include <string.h> int isSame(int *s, int N) { int jug = 1; …… 题解列表 2021年09月25日 0 点赞 0 评论 361 浏览 评分:9.9
优质题解 xy最大公约数与最小公倍数题解 摘要:解题思路: 我们用辗转相除法求最大公约数:首先我们将较大的数当作被除数,较小的数当作除数,两者相除得到余数;再将原来较小的数当作被除数,刚刚得到余数当作除数,两者相除;这样逐次用后一个数…… 题解列表 2021年09月25日 2 点赞 2 评论 2487 浏览 评分:8.2
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:wu注意事项:wu参考代码:#include <stdio.h>int f(int n);int main(){ int Sn=0, n, i = 0; scanf("%d", &n); i…… 题解列表 2021年09月24日 0 点赞 0 评论 310 浏览 评分:9.9
c++语言1011题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;int main(){ int t = 1 ;//取余计算的余数,赋值为1是为了方便进…… 题解列表 2021年09月24日 0 点赞 0 评论 577 浏览 评分:4.0
c++语言1011题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;int main(){ int t = 1 ;//取余计算的余数,赋值为1是为了方便进…… 题解列表 2021年09月24日 0 点赞 0 评论 290 浏览 评分:0.0
c++语言1014题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { long long sn = 0; int n = 0; …… 题解列表 2021年09月24日 0 点赞 0 评论 401 浏览 评分:0.0