Skip to content

Instantly share code, notes, and snippets.

@codyhex
Created September 30, 2017 19:02
Show Gist options
  • Save codyhex/d171546e81c6f4c30320f1f0f4c2371e to your computer and use it in GitHub Desktop.
Save codyhex/d171546e81c6f4c30320f1f0f4c2371e to your computer and use it in GitHub Desktop.
Getting a line input and strip off the heading and tailing spaces.
#!/bin/python3
import sys
if __name__ == "__main__":
n = int(input().strip())
m = int(input().strip())
for a0 in range(m):
x, y, w = input().strip().split(' ')
x, y, w = [int(x), int(y), int(w)]
# Write Your Code Here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment