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