Submission #995678

#TimeUsernameProblemLanguageResultExecution timeMemory
995678shikgom2Subway (info1cup19_subway)Pypy 3
0 / 100
30 ms18552 KiB
import sys input = sys.stdin.readline k = int(input()) if k == 0: print(0) print(0, -1) exit() nodes = [] nodes.append((0, -1)) current_node = 1 paths = 0 while paths < k: nodes.append((current_node, 0)) paths += 1 current_node += 1 print(len(nodes)) for node, parent in nodes: print(node, parent)
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...