arrow_forward همه ارسال‌ها

جزئیات ارسال کد#95

code_blocks
مسئله مربوطه: رستگاری آرتور (#1) arrow_outward
verified
وضعیت داوری نهایی: پذیرفته شد
terminal
زبان برنامه‌نویسی: Python
schedule
ارسال‌کننده و زمان:
behrad pashaei (۳ سال پیش)
descriptionsolution.py ۶ خط • ۱۲۱ بایت
1n=int(input())
2l=list(map(int,input().split()))
3ans=0
4for i in range(0,n//2):
5 ans+=abs(l[i]-l[n-i-1])
6print(ans)
کد ارسال‌شده برای داوری خودکار هاتکدز UTF-8