Sunday, May 1, 2016

UVA 10106 - Product

#include<bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>
#define i64 long long
#define mx(a,b,c) max(a,max(b,c))
#define mn(a,b,c) min(a,min(b,c))
#define eef else if
#define ff(i,s,e) for(int i=(s); i<e; i++)
#define ff2(i,s,e) for(int i=(s); i>=e; i--)
#define sf scanf
#define pf printf
#define dbug(x) cout<<"x = "<<x<<endl
#define newl cout<<"\n"
#define putcase cout<<"Case "<<++cse<<":"
namespace mp = boost::multiprecision;
using namespace std;
int main()
{
    string s , t;
while(cin>>s>>t){
    mp::cpp_int s1(s);
    mp::cpp_int s2(t);
    mp::cpp_int S=s1*s2;
    std::cout <<S<<"\n";
}
    return 0;
}

No comments:

Post a Comment