提交时间:2023-05-27 16:24:56

运行 ID: 74551

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