Nhập vào một dãy N số nguyên A1,A2,...,AN (N≤10000,|Ai|≤109). Hãy in ra màn hình chỉ số phần tử dương đầu tiên và cuối cùng. Dữ liệu vào: Dòng đầu tiên chứa số N Dòng thứ 2 chứa N số nguyên A1,A2,...,AN. Kết quả: In ra chỉ số phần tử dương đầu tiên và cuối cùng, nếu ko có phần tử dương nào thì in ra 2 số −1 −1 Sample Input Copy 7 7 -6 -4 19 -22 51 -82 Sample Output 1 6 https://lqdoj.edu.vn/problem/av05 pthon nhas

Các câu hỏi liên quan

Viết lại câu dung từ gợi ý 1.Mary has both toothache and headache. (not only ... but also) ______________________________________________________________________ 2.Helen likes cats. Mary likes cats. (both ... and) ______________________________________________________________________ 3.He spoke French. He spoke German. (both ... and) ______________________________________________________________________ 4.I’m not happy and you aren’t either. (neither ... nor) ______________________________________________________________________ 5.Jane owns a shop. She owns a restaurant, too. (both ... and) ______________________________________________________________________ 6.She’s at the office. She’s at the airport. (either ... or) ______________________________________________________________________ 7.It was a very boring film and it was very long too. (both ... and) ______________________________________________________________________ 8.He doesn’t have pen. And he doesn’t have paper. (neither ... nor) ______________________________________________________________________ 9.Tom is my older brother and Peter is, too. (both ... and) ______________________________________________________________________ 10.Nam’s handsome.Nam’s intelligent. (not only ... but also ) ______________________________________________________________________ 11.Peter was a football player and his brother was, too. (both ... and) ______________________________________________________________________ 12.David doesn’t play tennis. David doesn’t play table tennis. (neither ... nor) ______________________________________________________________________ 13.Mai plays the guitar well. Mai dances beautifully. (not only ... but also) ______________________________________________________________________ 14.They came late. They left early. (not only ... but also) ______________________________________________________________________ 15.She’s French. She’s Swiss. (either ... or) ______________________________________________________________________ 16.David can’t play tennis. David can’t play football. (neither ... nor) ______________________________________________________________________ 17.He has studied not only in theUnited States but also in Europe. (both ... and) ______________________________________________________________________ 18.She’s tired. She’s hungry. (not only ... but also) ______________________________________________________________________ 19.We can see the film tonight. We can see the film tomorrow night. (either ... or) ______________________________________________________________________ 20.The pavements are both narrow and crowded. (not only ... but also) ______________________________________________________________________