Home Web Board ProblemSet Standing Status Statistics
long long输出请使用 %lld服务器的python版本为3.4
Problem E: 打地鼠

Problem E: 打地鼠

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 89  Solved: 68
[Submit][Status][Web Board]

Description

Input

Output

Sample Input

4
5 4 3 -1

Sample Output

12 3

HINT


[Submit][Status][Web Board]