文件目录

#include <bits/stdc++.h>
using namespace std;
string multipl(string num1, string num2)
{
    vector<int> ans(num1.size() + num2.size(), 0);
    for (int i = num1.size() - 1; i >= 0; i--)
    {
        for (int j = num2.size() - 1; j >= 0; j--)
        {
            int m = (num1[i] - 48) * (num2[j] - '0') + ans[i + j + 1];
            ans[i + j + 1] = m % 10;
            ans[i + j] += m / 10;
        }
    }
    string res = "";
    for (int i = 0; i < ans.size(); i++)
        if (res.size() != 0 || ans[i] != 0)
            res.push_back(ans[i] + '0');
    if (res == "")
        res = "0";
    return res;
}
int main()
{
    string a, b;
    cin >> a >> b;
    cout << multipl(a, b);
    return 0;
}