-
Notifications
You must be signed in to change notification settings - Fork 0
Process hangs from big stdin #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Tried to do Might need to try using Even this program results in TLE: n, m = map(int, input().split())
for i in range(n):
a = input().split()
assert len(a) == m
k = int(input())
for i in range(k):
a = input().split()
assert len(a) == 2
print('YES') |
Seems like the issue is with n, m = map(int, input().split())
print('n:', n)
print('m:', m)
for i in range(n):
a = input().split()
assert len(a) == m
print('getting queries...')
k = int(input())
for i in range(k):
a = input().split()
assert len(a) == 2
if i == 0:
print('i:', i, '=>', a)
if i == k - 1:
print('i:', i, '=>', a) https://www.reddit.com/r/Python/comments/1vbie0/subprocesspipe_will_hang_indefinitely_if_stdout/ |
We probably need to upgrade the python version to 3.10 to be able to use the feature providing Reference: python/cpython@23c0fb8
The problem is that AWS team seems to not care about python 3.10 support that much: aws/aws-lambda-base-images#31 |
https://profound.academy/armenian-spoj/kVlW3xG5g1Ix6diXJQJT
This problem has big inputs (>1MB) and that freezes the process when passing stdin.
We should debug and fix this issue.
The text was updated successfully, but these errors were encountered: