拆分位数-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin>>n; cout<<n%…… 题解列表 2020年08月18日 0 点赞 0 评论 189 浏览 评分:0.0
拆分位数 (C语言代码) 摘要:解题思路:此题涉及到运用%和/运算符的运用,一个三位数的个位可以用n%10求得,十位数可以用n%100/10求得,百位数可以用n/100,求得,因为整数除以整数得到的仍然是一个整数注意事项:首先判断输…… 题解列表 2018年11月16日 1 点赞 0 评论 478 浏览 评分:0.0
1670: 拆分位数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a;int main(){ cin>>a; cout<<a%10…… 题解列表 2022年05月09日 0 点赞 0 评论 161 浏览 评分:0.0
拆分位数 (C语言代码) 摘要:会用%符号求余注意事项:空格别忘了参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d",&d); c=d%10; b=(d%100-c)/…… 题解列表 2018年02月27日 0 点赞 0 评论 497 浏览 评分:0.0
拆分位数 (C语言代码) 摘要:解题思路:#include<stdio.h>int main(){ int a,b,c,x; scanf("%d",&x); a = x%10; \\将x取10的余数,余数一定是个…… 题解列表 2017年11月03日 0 点赞 0 评论 615 浏览 评分:0.0
拆分位数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int a,b,c; scanf("%d",&n); a=n%10; b=n/10%10; c=n…… 题解列表 2021年02月04日 0 点赞 0 评论 127 浏览 评分:0.0
简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,g,s,b; scanf("%d",&i); b=i/100%10; s=i…… 题解列表 2024年01月10日 0 点赞 0 评论 97 浏览 评分:0.0
拆分位数(投机版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a,b,c; scanf("%c%c%c",&a,&b,&c); printf("%…… 题解列表 2022年10月11日 0 点赞 0 评论 84 浏览 评分:0.0
无聊的星期六 摘要:--------------------------------------------------print(' '.join(input()[::-1]))------------…… 题解列表 2024年04月27日 0 点赞 0 评论 205 浏览 评分:0.0
编写题解 1670: 拆分位数(C语言) 摘要:解题思路:int类型除某个数只取整数部分注意事项:%表示取余数参考代码://逆序输出这个三位数,输出个位、十位、百位,三个数字,用空格分开 #include <stdio.h> int main …… 题解列表 2022年12月27日 0 点赞 0 评论 91 浏览 评分:0.0