#include <iostream> #include <string> using namespace std; int main() { string str1, str2; int i, j, len1, len2, ans = 0; cin >> str1 >> str2; len1 = str1.length(); len2 = str2.length(); for (i = 0; i < len1; i++) for (j = 0; j < len2; j++) ans += (str1[i]-48) * (str2[j]-48); cout << ans << endl; system("pause"); }
【上篇】国家励志奖学金的申请书(13)
【下篇】hdu 2462 poj 3696 The Luckiest number fzu 1017 zoj 1537 Playing with Calculator
【下篇】hdu 2462 poj 3696 The Luckiest number fzu 1017 zoj 1537 Playing with Calculator