拆分位数-题解(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 评论 415 浏览 评分:0.0
拆分位数-题解<简单粗暴>(C语言代码) 摘要:这题主要是“个位”十位“百位的提取。(%的意思取余数) 个位简单//因为是3位数的,所以个位就是n/100就可以得到了(n是输入的数) 十位//可以n%100/10;还有n/10%10; 百位/…… 题解列表 2020年02月21日 0 点赞 0 评论 484 浏览 评分:0.0
拆分位数-题解(C语言代码) 摘要:与1034题重复,详情参见1034题https://blog.dotcpp.com/a/69679 这题主要难点是逆序拆分,所以b=个位,c=十位,d=百位.然后个位%10,百位%100/10保留整…… 题解列表 2020年03月23日 0 点赞 0 评论 365 浏览 评分:0.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 评论 257 浏览 评分:0.0
拆分位数-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { int n,a,b,c; cin>>n; …… 题解列表 2020年05月04日 0 点赞 0 评论 454 浏览 评分:0.0
拆分位数-题解(C语言代码) 摘要:输入一个三位数 a%10 得到个位数 a/10%10 得到十位数 a/100 得到百位数 #include int main() { …… 题解列表 2020年06月07日 0 点赞 0 评论 311 浏览 评分:0.0
拆分位数-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin>>n; cout<<n%…… 题解列表 2020年08月18日 0 点赞 0 评论 235 浏览 评分:0.0
拆分位数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b[3], i = 0; scanf("%d", &a); while (i <…… 题解列表 2020年11月22日 0 点赞 0 评论 240 浏览 评分:0.0
拆分位数-题解(C语言代码) 摘要:解题思路:拆分位数注意事项:输出结果参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); printf("%d %d %d…… 题解列表 2020年11月27日 0 点赞 0 评论 208 浏览 评分:0.0