Last active
February 22, 2016 12:16
-
-
Save zenito9970/aae382f747c72da0d077 to your computer and use it in GitHub Desktop.
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
class iostream: | |
def __init__(self): | |
self.s = [] | |
self.i = 0 | |
def next(self, T=str): | |
if(self.i < len(self.s)): | |
ret = self.s[self.i] | |
self.i += 1 | |
return T(ret) | |
st = input() | |
while(st == ""): | |
st = input() | |
self.s = st.split(" ") | |
self.i = 0 | |
return T(self.next(T)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment