| 比赛 | 郑州市创意编程大赛复现赛 | 评测结果 | RRRRRRRRRR |
|---|---|---|---|
| 题目名称 | 奶牛式乘法 | 最终得分 | 0 |
| 用户昵称 | djyqjy | 运行时间 | 2.026 s |
| 代码语言 | C++ | 内存使用 | 3.11 MiB |
| 提交时间 | 2024-11-25 20:17:51 | ||
#include<bits/stdc++.h>
#define int long long
using namespace std;
int a,b,x;
int ans;
signed main()
{
scanf("%lld%lld",&a,&b);
while(a)
{
x=b;
while(x)
{
ans+=(a%10)*(x%10);
x/=10;
}
a/=10;
}
printf("%lld",ans);
return 0;
}