提交时间:2023-05-27 16:26:47

运行 ID: 74552

#include<bits/stdc++.h> using namespace std; int a[1000010],t[1000010]; long long ans=0; int main(){ //freopen("a1.in","r",stdin); //freopen("a1.out","w",stdout); char n; int i=1; int num=0; while(cin>>n){ num+=(int)n; } cout<<num<<endl; return 0; }