Runtime Error
Code
def brute_force(s: str, n: int) -> int:
nums = parse_nums(s)
a = nums[0]
d = nums[1] - nums[0]
total = 0
cnt = 0
val = a
while cnt < n:
total += val
val += d
cnt += 1
return total
s = line
n = int(sys.stdin.readline().strip())
brute = brute_force(s, n)
print (brute)
Information
- Submit By
- Type
- Submission
- Problem
- P1231 Busy Friend
- Contest
- Testing - Intra LU Programming contest 25
- Language
- PyPy 3 (Python 3.9.18 PyPy 7.3.15)
- Submit At
- 2025-08-31 07:24:22
- Judged At
- 2025-08-31 07:24:22
- Judged By
- Score
- 0
- Total Time
- 62ms
- Peak Memory
- 20.488 MiB