提交时间:2023-05-27 16:29:37

运行 ID: 74560

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