Problem 1005 = =被这数据插了,没看懂

sleepyhunt | 2016-04-16 21:20:54Author
Input 1 50000 1 0 1 1 2 2 1 Output 1073741824 Answer 1061109567
sleepyhunt | 2016-04-16 21:24:00# 1
还能用不可达到的数据- -然后跟标程设的INF不一样,然后挂了么= =?
sleepyhunt | 2016-04-16 21:24:12# 2
interesting