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

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

code_blocks
مسئله مربوطه: رستگاری آرتور (#1) arrow_outward
verified
وضعیت داوری نهایی: پاسخ نادرست تست 1
terminal
زبان برنامه‌نویسی: Python
schedule
ارسال‌کننده و زمان:
Amir Mohammad Baghche sara (۱ سال پیش)
descriptionsolution.py ۹ خط • ۱۷۹ بایت
1n=int(input())
2obstacle = list(map(int, input().split()))
3shot = 0
4print(obstacle)
5
6for i in range(int(n/2)):
7 d = abs(obstacle[i] - obstacle[n-i-1])
8 shot += d
9print(shot)
کد ارسال‌شده برای داوری خودکار هاتکدز UTF-8