Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

lo 和 hi 要用 long long 而不是 int,lo*lo 和 hi*hi 的时候超 int 了

Posted by fjc73421 at 2020-08-10 20:09:57 on Problem 2100
In Reply To:求大佬帮忙看看两份几乎一模一样的程序,一份能过,一份TLE Posted by:mbath at 2018-07-28 21:47:11
如下程序结果为 1

int main()
{
    int x = 1000000;
    printf("%d\n", x*x < 0);
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator