Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
做的时候却可以把n压成1000或1001呢?为什么那道题目的n的范围是10^6 做的时候却可以把它压成1000或1001呢? if (n>1000) { if (n%2) n = 1001; else n = 1000; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator