拆分位数-题解(Python代码) 摘要:将输入的数字当成字符串,和输出列表的内容一样的方式直接输出 ```python num = input() print('%s %s %s'%(num[2],num[1],num[0])) `…… 题解列表 2020年02月29日 0 点赞 1 评论 986 浏览 评分:9.9
C++的看我!!!看我看我1!!!!! 摘要: #include using namespace std; int main() { string s; cin >> s; cout …… 题解列表 2020年03月07日 0 点赞 1 评论 684 浏览 评分:8.9
拆分位数-题解(C语言代码) 摘要:与1034题重复,详情参见1034题https://blog.dotcpp.com/a/69679 这题主要难点是逆序拆分,所以b=个位,c=十位,d=百位.然后个位%10,百位%100/10保留整…… 题解列表 2020年03月23日 0 点赞 0 评论 322 浏览 评分:0.0
拆分位数-题解(Java代码)理解不了我退网 摘要: import java.util.Scanner; public class P1670 { public static void main(St…… 题解列表 2020年03月30日 0 点赞 0 评论 499 浏览 评分:2.0
拆分位数-题解(C语言代码) 简单易懂,小白操作 摘要:#include int main() { int a,a1,a2,a3; //定义整型变量,a为三位数(例:356) scanf("%d",&a); a1=a/100; //取…… 题解列表 2020年04月03日 0 点赞 1 评论 330 浏览 评分:8.0
拆分位数-题解(C语言代码) 摘要:#include int main() { int x,a,b,c; scanf("%d",&x); a=(x%100)%10; b=(x%100)/10; c=x/100; …… 题解列表 2020年04月05日 0 点赞 0 评论 228 浏览 评分:0.0
拆分位数-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { int n,a,b,c; cin>>n; …… 题解列表 2020年05月04日 0 点赞 0 评论 370 浏览 评分:0.0
拆分位数-题解(C语言代码) 摘要:输入一个三位数 a%10 得到个位数 a/10%10 得到十位数 a/100 得到百位数 #include int main() { …… 题解列表 2020年06月07日 0 点赞 0 评论 255 浏览 评分:0.0
拆分位数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); printf("%d %d %d",a%10,a…… 题解列表 2020年06月26日 0 点赞 0 评论 1170 浏览 评分:8.8