提交时间:2022-10-15 11:34:22

运行 ID: 60431

#include<bits/stdc++.h> using namespace std; int a,b; long long ans; int main() { ios::sync_with_stdio(false); cin>>a>>b; int c=a*b; while(c) { ans+=c%10; c/=10; } cout<<ans<<endl; }