| 记录编号 | 227483 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 136.[USACO Feb08] 奶牛式乘法 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.008 s | ||
| 提交时间 | 2016-02-18 17:32:28 | 内存使用 | 0.25 MiB | ||
#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<algorithm>
using namespace std;
const int maxn=110;
int dis[maxn][maxn];
int n;
int prim();
void Find(int);
void hebing(int,int);
int main()
{
freopen("cowmult.in","r",stdin);
freopen("cowmult.out","w",stdout);
string s1,s2;
cin>>s1>>s2;
int len1=s1.length();
int len2=s2.length();
int tot=0;
for(int i=0;i<len1;i++)
{
for(int j=0;j<len2;j++)
{
tot+= (s1[i]-48)*(s2[j]-48);
//cout<<tot<<endl;
}
}
cout<<tot;
}