看到这个输入格式我直接用 python 了

X = [int(x) for x in sys.stdin.readline().strip().split(',')]