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

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

Point: 1


TẶNG QUÀ 1

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

Point: 2

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: 2


MÊ CUNG 1

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

Point: 3


TRÒ CHƠI WAR AND WAR

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

Point: 5

INPUT
6
2 3 2 3 3 2
1 2
1 3
1 4
3 5
3 6
OUTPUT
5 3 2 3 3 2

Time limit: 1.0 / Memory limit: 256M

Point: 7