Runtime Error
Code
s = input() #y=0x-1
for _ in range(int(input())):
x,y = map(int, input().split())
n = s.index("x")
m = int(s[2:n])
c = int(s[n+1::])
if y == (m*x+c):
print("YES")
else:
print("NO")
Information
- Submit By
- Type
- Submission
- Problem
- P1015 Friend in need is a friend indeed
- Contest
- Brain booster - 1
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2023-12-31 15:42:20
- Judged At
- 2024-11-11 03:45:26
- Judged By
- Score
- 80
- Total Time
- 20ms
- Peak Memory
- 3.211 MiB