提交时间:2021-05-22 09:45:00

运行 ID: 19742

#include<bits/stdc++.h> using namespace std; int los,sum; string s; int main(){ cin>>s; los=s.length()-1; for(int i=0;i<=los;i++) sum+=(int)s[i]; cout<<sum; return 0; }