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

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

verified
وضعیت داوری نهایی: پاسخ نادرست تست 13
terminal
زبان برنامه‌نویسی: Python
schedule
ارسال‌کننده و زمان:
max_15s (۵ ماه پیش)
descriptionsolution.py ۲۰ خط • ۴۵۰ بایت
1# bi adab
2first = [int(i) for i in input().split()]
3second = [int(i) for i in input().split()]
4
5boooLeft = -1 if first[0] * first[1] < 0 else 1
6boooRight = -1 if second[0] * second[1] < 0 else 1
7
8
9left = first[0] * second[1] * boooLeft
10right = second[0] * first[1] * boooRight
11
12if left * right < 0:
13 left, right = right, left
14
15if left > right:
16 print("First")
17elif left < right:
18 print("Second")
19else:
20 print("Equal")
کد ارسال‌شده برای داوری خودکار هاتکدز UTF-8