36分救救我

P1480 A/B Problem

suyouyu1234 @ 2024-11-30 16:18:48

哪错了?

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b;
    cin>>a>>b;
    cout<<a/b<<endl;
    return 0;
}

by JhdFarrell @ 2024-11-30 16:20:24

看数据范围


by suyouyu1234 @ 2024-12-01 19:36:38

@JhdFarrell我看了,但是还是不对?


by JhdFarrell @ 2024-12-02 11:18:00

@suyouyu1234 int的值域范围是[-2147483648,2147483647]的,题目是10^{5000}的,需要高精度


by suyouyu1234 @ 2024-12-03 22:04:35

@JhdFarrell AC了,谢谢


|