Submission #15
ID | Time | User | Problem | Language | Verdict | Time | Memory |
---|---|---|---|---|---|---|---|
15 | Mar/22/2025 08:40 | n29 | A*B | cpp | AC | 5 ms | 3328 KB |
Source Code
x
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const int N=1e5+100;
const int M=5001;
const int B=447;
const int mod=998244353;
const ll INF=1e18;
const int dx[]={1,-1,0,0};
const int dy[]={0,0,1,-1};
const double eps=1e-6;
int a,b;
ostream& operator<<(ostream& dest, __int128_t value){
ostream::sentry s(dest);
if (s) {
__uint128_t tmp = value < 0 ? -value : value;
char buffer[ 128 ];
char* d = end( buffer );
do{
--d;
*d="0123456789"[ tmp % 10 ];
tmp /= 10;
} while ( tmp != 0 );
if ( value < 0 ) {
-- d;
*d = '-';
}
int len = end( buffer ) - d;
if ( dest.rdbuf()->sputn( d, len ) != len ) {
dest.setstate( ios_base::badbit );
}
}
return dest;
}
void test(){
cin>>a>>b;
__int128_t x=__int128_t(a)*__int128_t(b);
cout<<x;
}
/*
*/
signed main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
// cout.tie(nullptr);
int t2=1;
// cin>>t2;
for(int i=1;i<=t2;i++){
test();
}
}