fork download
  1. #!/usr/bin/env python3
  2. import sys
  3.  
  4. def foo(data):
  5. return [i[0] * ''.join(map(str, i + ['\n'])) for i in data]
  6.  
  7. if __name__ == '__main__':
  8. data = [list(map(int, i)) for i in sys.argv[1:]]
  9. [print(i, end = '') for i in foo(data)]
  10.  
  11.  
Success #stdin #stdout 0.02s 9056KB
stdin
Standard input is empty
stdout
Standard output is empty