1670: 拆分位数 摘要:```cpp #include using namespace std; //学完算数运算符了,今天的作业是让你拆分一个三位数的个位、十位、百位! //你已经完全可以做了哦! //输入格式 …… 题解列表 2023年02月18日 0 点赞 1 评论 277 浏览 评分:9.9
1670: 拆分位数 摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; cout<<n…… 题解列表 2023年04月19日 0 点赞 0 评论 153 浏览 评分:9.9
编写题解 1670: 拆分位数 摘要:解题思路:方法一:我们可以定义一个字符串。注意事项:参考代码:#include<iostream> using namespace std; string n; int main() { …… 题解列表 2023年04月19日 0 点赞 0 评论 339 浏览 评分:9.9
简单拆分(C语言) 摘要:解题思路:逆序不是从小到大注意事项:参考代码:#include<stdio.h>int main(){ int x,a,b,c; scanf("%d",&x); a=x/100; b=x/10%10;…… 题解列表 2023年09月16日 0 点赞 0 评论 168 浏览 评分:9.9
编写题解 1670: 拆分位数(c++) 摘要:解题思路:利用数组来进行倒序输出注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[3]; int n; cin >> …… 题解列表 2023年10月23日 0 点赞 0 评论 191 浏览 评分:9.9
简单的递归 摘要:参考代码:#include<iostream> using namespace std; int main() { void print(int); int x;…… 题解列表 2024年01月03日 0 点赞 0 评论 301 浏览 评分:9.9
利用字符数组指针倒序输出(c语言) 摘要:解题思路:利用字符数组的长度倒序输出注意事项:字符串最后结尾有‘\0’参考代码:#include <stdio.h>int main() { char arr[3]; gets(arr); int a…… 题解列表 2024年02月18日 3 点赞 0 评论 396 浏览 评分:9.9
拆分位数-题解(C语言代码) 摘要:我们都知道,[问题 1670: 拆分位数](https://www.dotcpp.com/oj/problem1670.html "问题 1670: 拆分位数") 这个大概意思就是给你一个三位数,然后…… 题解列表 2020年02月29日 0 点赞 4 评论 892 浏览 评分:9.8
拆分位数 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*学完算数运算符了,今天的作业是让你拆分一个三位数的个位、十位、百位! 你已经完全可以做了哦! 输入输入一个三位数输出逆序输出这个三位数,输出个位、十位、百位,三个数字…… 题解列表 2018年03月10日 0 点赞 3 评论 2046 浏览 评分:9.7
优质题解 拆分位数 (C语言代码) 摘要:解题思路: 这个三位数是365,用int定义四个变量:int a,b,c,x; 输入这个三位数数: scanf("%d",&x); 百位:365/10=36余…… 题解列表 2019年01月31日 0 点赞 14 评论 3770 浏览 评分:9.5