题解 1670: 拆分位数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

拆分位数-题解(C语言代码)

与1034题重复,详情参见1034题https://blog.dotcpp.com/a/69679这题主要难点是逆序拆分,所以b=个位,c=十位,d=百位.然后个位%10,百位%100/10保留整数,百位/100,输出个十百位.```c#includeintmain(){inta,

拆分位数-题解(C语言代码)

摘要:我们都知道,[问题 1670: 拆分位数](https://www.dotcpp.com/oj/problem1670.html "问题 1670: 拆分位数") 这个大概意思就是给你一个三位数,然后……

拆分位数-题解<简单粗暴>(C语言代码)

摘要:这题主要是“个位”十位“百位的提取。(%的意思取余数) 个位简单//因为是3位数的,所以个位就是n/100就可以得到了(n是输入的数) 十位//可以n%100/10;还有n/10%10; 百位/……

拆分位数-题解(C语言代码)

publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);intnum=sc.nextInt();intmax;intge=num%10;intshi=num/10%10;intbai=num/100%10;System.ou

拆分位数 (C语言代码)

摘要:参考代码:#include<stdio.h>int main(void){         int n,r;         scanf("%d", &n);         while (n)   ……