提交时间:2021-05-16 16:43:00

运行 ID: 19527

#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main(){ freopen("x14_1.in","r",stdin); freopen("x14_1.out","w",stdout); char a[100]; int i,ans=0; cin>>a; for(int i=0;i<strlen(a);++i) ans+=int(a[i]); cout<<ans<<endl; }