# Appropriate comments at the top and throughout for style points ... import statements if needed ... ... defined functions (or classes) if needed... def main(): ... line = raw_input().strip() ... caseNum = 0 while (not done): caseNum += 1 ... process the line print whatever needs to be printed ... line = raw_input().strip() ... main() |
# Appropriate comments at the top and throughout for style points ... import statements if needed ... ... defined functions (or classes) if needed... def main(): ... line = raw_input().strip() numberOfCases = ...from info in line... ... for caseNum in range(1,numberOfCases+1): input line(s) associated with this case strip, split, and convert as needed for processing process information for this case print whatever needs to be printed for this case main() |