题解 1118: Tom数

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

筛选

1118:TOM数超简单字符数组算法

摘要:解题思路:字符数组,记得-‘0’将字符转换成数字注意事项:参考代码:#include <iostream>#include <cstdio>#include <cstring>#include <al……

1118: Tom数,简洁易懂

摘要:##1118: Tom数,简洁易懂 ```cpp #include using namespace std; int main(){ long long a;//注意,这里要用long l……

题目1118 Tom数

摘要:解题思路:注意事项:参考代码:public class Main {    public static void main(String[] args) {        Scanner sc = n……

Tom数(c语言)

摘要:注意事项: 定义的范围要大些 参考代码: ```c #include #include int main() { unsigned int a; while(scanf("%u"……

字符大法好

摘要:解题思路:用字符串一个一个取出来注意事项:特别注意就是别想复杂了,一般数学取数字问题多多考虑字符串参考代码:#include <iostream>#include <stdio.h>using nam……

字符数组解Tom数

摘要:解题思路:因为int范围最高到2的31次方-1,所以改为数组注意事项:参考代码: char str[100];   while(~scanf("%s",str))   {       int l,su……