Tên đăng nhập Điểm ▾ Bài tập Giới thiệu
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0

a=int(input())
print a

30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0

em ko bik làm mong thầy cô cho em xin đáp án ạ

30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401
phambathai
Pham Ba Thai
0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401
khangctb10tin
Phạm Công Khang
0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0

fi=open("bai6.inp","r")
fo=open("bai6.out","w")
n=int(fi.readline())
a=list(map(int,fi.readline().split()))
a=[0]+a
tong=0
for i in range(2,n+1):
tong=max(tong,a[i]+a[i-1])
print(tong)
fi.close()
fo.close()

30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0

include<iostream>

using namespace std;

int main(){
int x;
cin >> x;
cout << "So gap doi la : " << 2 * x;
return 0;
}

30401 0 0
30401 0 0
30401 0 0
30401 0 0
30401 0 0