题解列表

筛选

Tom数-题解(C++代码)

解题思路:直接把输入当做字符串处理,求和的时候再转化整数求;代码:```cpp#includeusingnamespacestd;intmain(){stringa;intsum;while(cin>>a){sum=0;for(inti=0;i