题解 1670: 拆分位数

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

筛选

拆分位数 (C语言代码)

摘要:解题思路:此题涉及到运用%和/运算符的运用,一个三位数的个位可以用n%10求得,十位数可以用n%100/10求得,百位数可以用n/100,求得,因为整数除以整数得到的仍然是一个整数注意事项:首先判断输……

1670: 拆分位数

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a;int main(){ cin>>a; cout<<a%10……

拆分位数 (C语言代码)

摘要:会用%符号求余注意事项:空格别忘了参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d",&d); c=d%10; b=(d%100-c)/……

拆分位数 (C语言代码)

摘要:解题思路:#include<stdio.h>int main(){ int a,b,c,x; scanf("%d",&x); a = x%10;           \\将x取10的余数,余数一定是个……

简单的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i,g,s,b;    scanf("%d",&i);    b=i/100%10;    s=i……

拆分位数(投机版)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    char a,b,c;    scanf("%c%c%c",&a,&b,&c);    printf("%……

无聊的星期六

摘要:--------------------------------------------------print(&#39; &#39;.join(input()[::-1]))------------……

 编写题解 1670: 拆分位数(C语言)

摘要:解题思路:int类型除某个数只取整数部分注意事项:%表示取余数参考代码://逆序输出这个三位数,输出个位、十位、百位,三个数字,用空格分开 #include <stdio.h> int main ……