提交时间:2022-10-15 11:37:13
运行 ID: 60439
#include <bits/stdc++.h> using namespace std; int n, m, x, ans; int main() { // freopen("J2.in", "r", stdin); // freopen("J2.out", "w", stdout); scanf("%d%d", &n, &m); while(n) { x += n%10; n /= 10; } while(m) { ans += x*(m%10); m /= 10; } printf("%d\n", ans); return 0; }