编写题解 1034: [编程入门]自定义函数之数字分离(python) 摘要:[题目1034:[编程入门]自定义函数之数字分离](https://www.dotcpp.com/oj/problem1034.html?sid=18058228&lang=6#editor) …… 题解列表 2024年10月24日 1 点赞 0 评论 249 浏览 评分:9.9
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码#include<iostream>#include<string>using namespace std;int main(){ string s; cin>…… 题解列表 2024年10月16日 0 点赞 0 评论 205 浏览 评分:0.0
各位大佬看看我的 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void SumAge(char a[4]) { for (size_t i = 0; i <4; i++) { …… 题解列表 2024年08月31日 1 点赞 0 评论 142 浏览 评分:0.0
编写题解 1034: [编程入门]自定义函数之数字分离 摘要:解题思路:将输入的四位数n进行对10取余,再除以10,得到各个位数的值后,加上48,放入字符型数组,在函数中直接按要求输出。注意事项:1.ASCII的存储方式与整形数据相似。所以可以用整形常量给字符型…… 题解列表 2024年08月04日 0 点赞 0 评论 204 浏览 评分:0.0
1034: [编程入门]自定义函数之数字分离 简单易懂版 摘要:```c #include #include void fun(char arr[]){ int n=strlen(arr);//获取数组长度 for(int i=0;i…… 题解列表 2024年08月02日 0 点赞 0 评论 222 浏览 评分:0.0
自定义函数之字符类型统计-简单方法解决 摘要:解题思路:大概就是取余,求整思路注意事项:参考代码:#include<stdio.h>int main(){ int n, a, b, c, d; scanf("%d", &n); …… 题解列表 2024年06月26日 0 点赞 0 评论 154 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:def fenli(a): for i in a: print(i,end=' ')a = input()fenli(a)…… 题解列表 2024年06月03日 0 点赞 0 评论 217 浏览 评分:0.0
1034 数字分离(sscanf函数) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main(){ char a[100]; gets(a)…… 题解列表 2024年05月14日 0 点赞 0 评论 87 浏览 评分:0.0
题目 1034: 秒杀!!! 摘要:解题思路:直接看成是字符串 ,秒杀注意事项:参考代码:#includeusing namespace std;int main(){ string a; cin >> a; f…… 题解列表 2024年05月05日 0 点赞 0 评论 136 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:def function(x): return print(' '.join(x)) if __name__ == '__main…… 题解列表 2024年04月18日 0 点赞 0 评论 156 浏览 评分:0.0