题解 1118: Tom数

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

筛选

Tom数的解法

摘要:# 1、定义 ```cpp #include #include using namespace std; char *str; int tom; ``` # 2、输入 看似很困难,其……

1118:TOM数(c语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>main(){ char a[10]={&#39;0&#39;}; int s,i; while(s……

Tom数(C++简单)

摘要:解题思路:注意事项:2^32数很大,int 存不下,可以用long long;参考代码:#include<iostream> using namespace std; #include<cmath……

超简单的C++

摘要:参考代码:#include<iostream> using namespace std; int main() {     long long int sum;     long long ……

1118: Tom数 (C)

摘要:```c #include #include int main(void) { long long len, num, sum=0; int i; while (~scan……

编写题解 1118: Tom数 (C语言)

摘要:解题思路:就知道你不喜欢看解释注意事项:参考代码://每行一个输出,对应该数的各位数之和. #include <stdio.h> #include <string.h> int main (vo……

1118: Tom数(python)

摘要:解题思路:注意事项:补充大佬解法,要加上except EOFError才能运行通过参考代码:while True:    try:        print(sum([int(i) for i in ……