1118:TOM数(c语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>main(){ char a[10]={'0'}; int s,i; while(s……
1118: Tom数(c++代码)
摘要:```cpp
#include
#include
using namespace std;
int main()
{
char *str;
int tom;
w……
Tom数(C++简单)
摘要:解题思路:注意事项:2^32数很大,int 存不下,可以用long long;参考代码:#include<iostream>
using namespace std;
#include<cmath……
1118: Tom数 (C)
摘要:```c
#include
#include
int main(void)
{
long long len, num, sum=0;
int i;
while (~scan……
吾乃元始天尊!!!1118: Tom数
摘要:```cpp
#include
using namespace std;
string s1;
int main()
{
int i,sum=0;
while(cin>>s1)
……
编写题解 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 ……
Tom数的题解 为什么老说我标题短
摘要:解题思路:字符串注意事项:无参考代码:#include <iostream>#include<string.h>using namespace std;int main(){ int sum =……