自定义函数之数字分离(so easy) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num; scanf("%d", &num); int a = num / 1000; int b = …… 题解列表 2023年02月08日 0 点赞 0 评论 120 浏览 评分:0.0
用字符串自定义函数分离 摘要:解题思路:注意事项:注意'\0'不要漏掉参考代码:#include <stdio.h>#include <string.h>int main(){ char a[5]; gets(a);/…… 题解列表 2023年01月11日 0 点赞 0 评论 129 浏览 评分:0.0
[编程入门]自定义函数之数字分离-字符数组解决方法(c语言) 摘要:解题思路:创建两个字符数组,一个用来输入数字,然后再把数字存入数组之后再存一个空格。参考代码:#include <stdio.h> #include <string.h> void cmp(cha…… 题解列表 2022年12月28日 0 点赞 0 评论 96 浏览 评分:9.9
数字分离简单函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a;int b,c,d,e;scanf("%d",&a);b=a/1000;e=a%10;d=a/10%1…… 题解列表 2022年12月26日 0 点赞 0 评论 102 浏览 评分:0.0
1034 题解简单易懂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int seperate(int m,int x,int y,int z,int w){ x=m/1000%10; y=m/100%1…… 题解列表 2022年12月10日 0 点赞 0 评论 109 浏览 评分:0.0
[编程入门]自定义函数之数字分离 c语言 递归求解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void separate(int n){ int temp=n%10; n/=10; if(n)separate(…… 题解列表 2022年12月07日 0 点赞 0 评论 135 浏览 评分:9.0
1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;queue<char>mem;int main(){ int i; char a; …… 题解列表 2022年12月06日 0 点赞 0 评论 168 浏览 评分:9.9
数字分离(c语言) 摘要:解题思路:我们可以使用一个数组来存储输入的数,然后在利用循环输出。 当我们不知道数组里面存了多少个数时,我们可以利用字符数组的最后一个结束符('\0')来作为循环的判断条件。 注意事项:'\0'在…… 题解列表 2022年11月27日 0 点赞 0 评论 208 浏览 评分:9.9
编写题解 1034: [编程入门]自定义函数之数字分离,有比较细节的地方 摘要:解题思路:利用for循环注意事项:直接用input函数不用外面嵌套int,这也是这个题应该注意的地方参考代码:def q():#直接用q带过了 a = input()#直接便利了字符串,而外面有…… 题解列表 2022年11月23日 0 点赞 0 评论 249 浏览 评分:0.0
1034: [编程入门]自定义函数之数字分离(C语言) 摘要:参考代码:#include<stdio.h> int main() { char a[4]; for(int i=0;i<4;i++) { scan…… 题解列表 2022年11月15日 0 点赞 0 评论 144 浏览 评分:0.0