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

那就估计tc的int范围不够大,运算过程超出范围了,你把int改为long试试看就知道了

Posted by hawk at 2005-03-02 22:15:03 on Problem 1006
In Reply To:我用的是TC3.0,输出结果如下 Posted by:deep_you at 2005-03-02 21:57:05
vc和g++的int和long是一样的
> 21252
> 21152
> 10675
> 13434
> 10258
> 4693
> 除了前两个后面的都不对,,谢谢;

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