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
from fractions import Fraction | |
def is_straight(z): | |
rows = len(z) | |
for i in range(1, rows): | |
if z[i][0] < 0: | |
return False | |
return True | |
def is_dual(z): |
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
native/pre do | |
##include <cstdio> | |
end | |
native @nohold _printf(); | |
class Class1 with do end | |
class Class2 with do end | |
class Class3 with do end | |
class Class4 with do end |