Biểu thức có giá trị là số nguyên

Nộp bài
Time limit: 1.0 / Memory limit: 256M

Point: 7


TẶNG QUÀ 1

Nộp bài
Time limit: 1.0 / Memory limit: 256M

Point: 7

Ví dụ:

Input
5
1 2 3 5 7
Output
2 3 4 4 4

Ví dụ 2:

Input
5 
2 1 5 4 3
Output
1 3 3 3 6

Nguồn


Dãy con có độ dãn K

Nộp bài
Time limit: 1.0 / Memory limit: 256M

Point: 6