This file contains hidden or 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
const I = x => x; | |
const K = x => y => x; | |
const S = x => y => z => x(z)(y(z)); | |
const p = console.log; | |
const T = x => y => x; | |
const F = x => y => y; | |
//p(T(1)(0)); |
This file contains hidden or 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
[...Array(31).keys()].filter(f=>(f>0)).forEach((i)=>{console.log(i%3==0?i%5==0?"fizz buzz":"fizz":i%5==0?"buzz":i)}) |
This file contains hidden or 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
const p = console.log | |
const TF = x => x%3==0 ? x%5 == 0?p("Fizz Buzz"):p("fizz"):x%5==0?p("Buzz"):p(x) | |
const loop = x => y => f =>{ | |
f(x) | |
x < y ? loop(x+1)(y)(f):" " | |
} | |
loop(1)(31)(TF) |
This file contains hidden or 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
const ごじゅうまでのはいれつ = [...Array(51).keys()]; | |
const たんまつにひょうじ = console.log; | |
const ぜろぬかす = f=>(f>0); | |
const ふぃずばずする = x => x % 3 ===0 ? x%5 ===0?"ふぃずばず":"ふぃず":x%5 ===0?"ばず":x; | |
ごじゅうまでのはいれつ.filter(ぜろぬかす).forEach((i)=>たんまつにひょうじ(ふぃずばずする(i))) |
This file contains hidden or 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
let ᛝ = ((-~[]+!"ᚸᚸ")+((("ᚣᛄᛘ"==="ᛤ")-[])+[])+((!"ᛒᛕᛗ")-[]))-0 | |
const ᚱᚲᚳᚵᚷᚸ = console.log; | |
const ᛑᛏᛥᛥ = x => x%(-~[-~[-~[]]])===0?x%(-~-~-~[-~[-~[]]])===0?"ᚪᛉᛝᛞᚥᛔᛪᛤᛤ":"ᚪᛉᛝᛞ":x%(-~-~-~[-~[-~[]]]) ===0?"ᛔᛪᛤᛤ":x; | |
for (let ᛯᛰ=(false-[]);ᛯᛰ<ᛝ;ᛯᛰ++){ | |
ᚱᚲᚳᚵᚷᚸ(ᛑᛏᛥᛥ(ᛯᛰ)) | |
} |
This file contains hidden or 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
const [ᛝ,ᚱᚲᚳᚵᚷᚸ,ᛑᛏᛥᛥ,ᛞᛟᛠ] = [((-~[]+!"ᚸᚸ")+((("ᚣᛄᛘ"==="ᛤ")-[])+[])+((!"ᛒᛕᛗ")-[]))-0,console.log,(x => x%(-~[-~[-~[]]])===0?x%(-~-~-~[-~[-~[]]])===0?"ᚪᛉᛝᛞᚥᛔᛪᛤᛤ":"ᚪᛉᛝᛞ":x%(-~-~-~[-~[-~[]]]) ===0?"ᛔᛪᛤᛤ":x),(-~[])] | |
const ᛄᛅᛇᛈᛉᛊ = x => y => f => p => {p(f(x));x<=y?ᛄᛅᛇᛈᛉᛊ(x+1)(y)(f)(p):"ᛛᛜᛝᛞᛟᛠ"} | |
ᛄᛅᛇᛈᛉᛊ(ᛞᛟᛠ)(ᛝ)(ᛑᛏᛥᛥ)(ᚱᚲᚳᚵᚷᚸ) |
This file contains hidden or 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
firstCards = input().split(" ") | |
field = [] | |
unfair = {'J':11,'Q':12,'K':13,'A':14,'2':15,'unk':1,'3':3,'4':4,'5':5,'6':6,'7':7,'8':8,'9':9,'10':10} #ださいw | |
# unfair[i] => 13 | |
print(firstCards) | |
#hikisuu 2 dotti tuyoi? | |
def duel(x,field): | |
if unfair[x] > unfair[field[-1]]: | |
return True |
This file contains hidden or 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
[...Array(31).keys()].filter(x => x > 0).map(y => y%3==0 ? y%5 ==0?"FizzBuzz":"Fizz":y%5==0?"Buzz":y) |
This file contains hidden or 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
const fizzbuzz = (v) => { | |
const origin = num => word => inputnum => { | |
return inputnum % num == 0 ? word : inputnum; | |
} | |
const fizz = origin(3)('Fizz') | |
const buzz = origin(5)('Buzz') | |
const fizzbuzz = origin(15)('FizzBuzz') | |
This file contains hidden or 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
N = int(input()) | |
for o in [(i%3==0)*'Fizz' + (i%5==0)*'Buzz' or i for i in range(1, N+1)]: | |
print (o) |