Skip to content

Instantly share code, notes, and snippets.

View tzengyuxio's full-sized avatar

Tzeng Yuxio tzengyuxio

View GitHub Profile
#!/usr/bin/python
#
# author: tzeng.yuxio@gmail.com
# usage: cat file.input | ./qround-problem-d.py > file.output
import sys
def solve():
numblocks = (int)(sys.stdin.readline())
s = sys.stdin.readline()[:-1]
#!/usr/bin/python
#
# author: tzeng.yuxio@gmail.com
# usage: cat file.input | ./qround-problem-a.py > file.output
import sys
def solve():
s = sys.stdin.readline()[:-1]
c, f, x = [float(x) for x in s.split()]
#!/usr/bin/python
#
# author: tzeng.yuxio@gmail.com
# usage: cat file.input | ./qround-problem-a.py > file.output
import sys
def get_a_row():
a = (int)(sys.stdin.readline())
b = 5 - a