这题目什么意思?

P1303 A*B Problem

CMZ15079761339 @ 2024-10-04 10:02:33

这和那个入门的有啥不一样?三个测试点wa了……

#include <iostream>
using namespace std;
int main(){
    long long int a,b;
    cin>>a>>b;
    cout<<a*b<<endl;
    return 0;
}

蒟蒻求助!!!我太难了……


by Exschawasion @ 2024-10-04 10:04:21

@CMZ15079761339

Here you've got to implement something to hold what long long cant do


by _FJ_ @ 2024-10-04 10:05:02

高精度


by OldDriverTree @ 2024-10-04 10:05:12

@CMZ15079761339

每个非负整数不超过 10^{2000}

long long 的只能存 -2^{63}\sim 2^{63}-1 的数,这道题这样写显然是不行的,建议右转题解区学习高精度


by abc1234shi @ 2024-10-04 10:05:41

@CMZ15079761339 10^{2000},要用高精度...


|