题解 1118: Tom数

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

筛选

Tom数 (C语言代码)

摘要:解题思路:不知道错哪了注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h> int main() { long lon……

Tom数 (C++代码)

摘要:解题思路:使用字符数组,逐个进行相加注意事项:注意负数参考代码:#include<iostream>#include<cstdio>#include<cstring>using namespace s……

Tom数 (C语言代码)

摘要:解题思路:注意整形 要unsignet注意事项:参考代码:#include<stdio.h> int main(){ int m; unsigned int n; while(scanf("%d",&……

Tom数 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char a[40]; int len,i,sum; ……

Tom数 (C语言代码)

摘要:解题思路:注意事项:参考代码:编译错误#include<stdio.h>int fac(unsigned int n, int s = 0){    s += n % 10;    n /= 10; ……

Tom数-题解(Java代码)

摘要:用字符串方法提取每一个数相加即可 import java.util.*; public class Main { public static void main(String args[……