Last active
July 15, 2018 15:45
-
-
Save neonbadger/9033173b04407462621e to your computer and use it in GitHub Desktop.
Hackerrank stdin & stdout for python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Hackerrank: read from STDIN | |
raw_input: read a line from STDIN and returns a string | |
number per line: | |
n = int(raw_input()) | |
space-seperated numbers in line: | |
arr = map(int, raw_input().split()) | |
""" | |
def main(): | |
t = int(raw_input()) | |
for _ in xrange(t): | |
a, b = map(int, raw_input().strip().split(' ')) | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't work as presented
Please revise or take this down.