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

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

verified
وضعیت داوری نهایی: پاسخ نادرست تست 1
terminal
زبان برنامه‌نویسی: Python
schedule
ارسال‌کننده و زمان:
Amin Niazi (۲ سال پیش)
descriptionsolution.py ۲۰ خط • ۴۲۸ بایت
1data = [input() for i in range(3)]
2row_1 = [int(i) for i in data[1].split()]
3row_2 = [int(i) for i in data[2].split()]
4row_1.sort()
5row_2.sort()
6print(row_1)
7print(row_2)
8index_1 = 0
9index_2 = 0
10while index_1 < len(row_1) and index_2 < len(row_2):
11 if row_1[index_1] == row_2[index_2]:
12 index_1 += 1
13 index_2 += 1
14 else:
15 index_1 += 1
16
17if index_2 == len(row_2):
18 print("Yes")
19else:
20 print("No")
کد ارسال‌شده برای داوری خودکار هاتکدز UTF-8