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

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

verified
وضعیت داوری نهایی: پاسخ نادرست تست 1
terminal
زبان برنامه‌نویسی: Python
schedule
ارسال‌کننده و زمان:
Amir Mohammad Baghche sara (۱ سال پیش)
descriptionsolution.py ۱۴ خط • ۲۶۰ بایت
1#a=input()
2#print(type(a))
3#res = list(map(int, str(a)))
4#print(res)
5n=int(input())
6w = list(map(int, input().split()))
7print(type(w))
8c=0
9for i in range(n):
10 for j in range(n,2*n):
11 if w[i] == w[j]:
12 d = j - i
13 c += d
14print(c)
کد ارسال‌شده برای داوری خودکار هاتکدز UTF-8