| 记录编号 | 171710 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 136.[USACO Feb08] 奶牛式乘法 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.011 s | ||
| 提交时间 | 2015-07-20 15:59:10 | 内存使用 | 0.28 MiB | ||
#include<iostream>
#include<cstdlib>
#include<cstdio>
using namespace std;
string a,b;
long long h;
int main()
{ freopen("cowmult.in","r",stdin);
freopen("cowmult.out","w",stdout);
cin>>a>>b;
for(int i=0;i<a.length();++i)
for(int k=0;k<b.length();++k)
h+=(a[i]-'0')*(b[k]-'0');
cout<<h;
//system("pause");
}