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

虽然AC了,其实我还是不理解为啥用long long int会OLE

Posted by KatrineYang at 2016-09-08 05:09:39 on Problem 1239 and last updated at 2016-09-08 05:10:35
按道理说,最不济的情况,就是每个后面的数比前面的数位数多1,long long 可以表示所有18位以内的,而1+2+...+18远远大于80!应该不会溢出啊!
难道是数据范围给的不对?也不太像,因为用字符串我开的100的char数组,就AC了,没有RE也没有WA或者TLE。这样看规模小于100!然而1+2+...+18也比100大,实在想不通哪里会溢出
另外我用long long写的OLE的代妈,苯地跑100个9都可以过,应该不会有比这个更大的数据了吧

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