拆分位数-题解(C语言代码) 摘要:与1034题重复,详情参见1034题https://blog.dotcpp.com/a/69679 这题主要难点是逆序拆分,所以b=个位,c=十位,d=百位.然后个位%10,百位%100/10保留整…… 题解列表 2020年03月23日 0 点赞 0 评论 321 浏览 评分:0.0
C++的看我!!!看我看我1!!!!! 摘要: #include using namespace std; int main() { string s; cin >> s; cout …… 题解列表 2020年03月07日 0 点赞 1 评论 683 浏览 评分:8.9
拆分位数-题解(Python代码) 摘要:将输入的数字当成字符串,和输出列表的内容一样的方式直接输出 ```python num = input() print('%s %s %s'%(num[2],num[1],num[0])) `…… 题解列表 2020年02月29日 0 点赞 1 评论 986 浏览 评分:9.9
拆分位数-题解(C语言代码) 摘要:我们都知道,[问题 1670: 拆分位数](https://www.dotcpp.com/oj/problem1670.html "问题 1670: 拆分位数") 这个大概意思就是给你一个三位数,然后…… 题解列表 2020年02月29日 0 点赞 4 评论 848 浏览 评分:9.8
拆分位数-题解<简单粗暴>(C语言代码) 摘要:这题主要是“个位”十位“百位的提取。(%的意思取余数) 个位简单//因为是3位数的,所以个位就是n/100就可以得到了(n是输入的数) 十位//可以n%100/10;还有n/10%10; 百位/…… 题解列表 2020年02月21日 0 点赞 0 评论 420 浏览 评分:0.0
拆分位数-题解(Java代码) 摘要:```java package javaapplication; import java.util.Scanner; import java.lang.String; public class…… 题解列表 2020年02月19日 0 点赞 0 评论 697 浏览 评分:8.0
拆分位数-题解(C语言代码) 摘要: #include "stdio.h" int main() { int a,g,s,b; scanf("%d",&a); b = a/100; s = (a-(b*1…… 题解列表 2020年02月11日 0 点赞 0 评论 372 浏览 评分:0.0
拆分位数-题解(C语言代码) 摘要:```c #include int main() { int a; scanf("%d",&a); printf("%d %d %d\n",a%10,a/10%10,a/100);/…… 题解列表 2019年12月24日 0 点赞 0 评论 1244 浏览 评分:0.0
拆分位数-题解(C语言代码) 摘要: public static void main(String[] args) { Scanner sc=new Scanner(System.in); int num=…… 题解列表 2019年12月23日 0 点赞 0 评论 466 浏览 评分:0.0