Skip to main content
deleted 4 characters in body
Source Link
stevecross
  • 381
  • 1
  • 6

Ruby, 269 246 241 235 241227

g="b6wapsm769n90ongzuvadg5vdat6ap7v1oyyie3j5wxbq9xtycezrtt9xamn9riqnnxnsxjx0al8uk8rmk5snb7quly7t5i9rkq21r1vnns5vdm7gwzqtxwwwmj02nqxlhl".to_i 36
l=[*('A'l=*?A..'Z')]?Z
676.times{|i|print g.to_s(2)[i]==?1? l[i/26]+l[i%26]:"  "
print ,i%26==25? $/:" "}

g is a matrix where each cell that has a country code is a 1 and all others are 0. All rows are written behind and the resulting binary number has been converted to a base 36 representation. Then I just iterate over all cells and check if the code shall be printed.

Ruby, 269 246 241

g="b6wapsm769n90ongzuvadg5vdat6ap7v1oyyie3j5wxbq9xtycezrtt9xamn9riqnnxnsxjx0al8uk8rmk5snb7quly7t5i9rkq21r1vnns5vdm7gwzqtxwwwmj02nqxlhl".to_i 36
l=[*('A'..'Z')]
676.times{|i|print g.to_s(2)[i]==?1? l[i/26]+l[i%26]:"  "
print i%26==25? $/:" "}

g is a matrix where each cell that has a country code is a 1 and all others are 0. All rows are written behind and the resulting binary number has been converted to a base 36 representation. Then I just iterate over all cells and check if the code shall be printed.

Ruby, 269 246 241 235 227

g="b6wapsm769n90ongzuvadg5vdat6ap7v1oyyie3j5wxbq9xtycezrtt9xamn9riqnnxnsxjx0al8uk8rmk5snb7quly7t5i9rkq21r1vnns5vdm7gwzqtxwwwmj02nqxlhl".to_i 36
l=*?A..?Z
676.times{|i|print g.to_s(2)[i]==?1?l[i/26]+l[i%26]:"  ",i%26==25?$/:" "}

g is a matrix where each cell that has a country code is a 1 and all others are 0. All rows are written behind and the resulting binary number has been converted to a base 36 representation. Then I just iterate over all cells and check if the code shall be printed.

deleted 3 characters in body
Source Link
stevecross
  • 381
  • 1
  • 6

Ruby, 269 246 246241

g="b6wapsm769n90ongzuvadg5vdat6ap7v1oyyie3j5wxbq9xtycezrtt9xamn9riqnnxnsxjx0al8uk8rmk5snb7quly7t5i9rkq21r1vnns5vdm7gwzqtxwwwmj02nqxlhl".to_i 36
l=[*('A'..'Z')]
676.times{|i|print (g.to_s(2)[i]==?1)? l[i/26]+l[i%26]:"  "
print (i%26==25)? $/:" "
 }

g is a matrix where each cell that has a country code is a 1 and all others are 0. All rows are written behind and the resulting binary number has been converted to a base 36 representation. Then I just iterate over all cells and check if the code shall be printed.

Ruby, 269 246

g="b6wapsm769n90ongzuvadg5vdat6ap7v1oyyie3j5wxbq9xtycezrtt9xamn9riqnnxnsxjx0al8uk8rmk5snb7quly7t5i9rkq21r1vnns5vdm7gwzqtxwwwmj02nqxlhl".to_i 36
l=[*('A'..'Z')]
676.times{|i|print (g.to_s(2)[i]==?1)? l[i/26]+l[i%26]:"  "
print (i%26==25)? $/:" "
 }

g is a matrix where each cell that has a country code is a 1 and all others are 0. All rows are written behind and the resulting binary number has been converted to a base 36 representation. Then I just iterate over all cells and check if the code shall be printed.

Ruby, 269 246 241

g="b6wapsm769n90ongzuvadg5vdat6ap7v1oyyie3j5wxbq9xtycezrtt9xamn9riqnnxnsxjx0al8uk8rmk5snb7quly7t5i9rkq21r1vnns5vdm7gwzqtxwwwmj02nqxlhl".to_i 36
l=[*('A'..'Z')]
676.times{|i|print g.to_s(2)[i]==?1? l[i/26]+l[i%26]:"  "
print i%26==25? $/:" "}

g is a matrix where each cell that has a country code is a 1 and all others are 0. All rows are written behind and the resulting binary number has been converted to a base 36 representation. Then I just iterate over all cells and check if the code shall be printed.

deleted 14 characters in body
Source Link
stevecross
  • 381
  • 1
  • 6

Ruby, 269269 246

g="b6wapsm769n90ongzuvadg5vdat6ap7v1oyyie3j5wxbq9xtycezrtt9xamn9riqnnxnsxjx0al8uk8rmk5snb7quly7t5i9rkq21r1vnns5vdm7gwzqtxwwwmj02nqxlhl".to_i 36
l="ABCDEFGHIJKLMNOPQRSTUVWXYZ"l=[*('A'..'Z')]
676.times do|i|
print{|i|print (g.to_s(2)[i]=="1"[i]==?1)? l[i/26]+l[i%26]:"  "
print (i%26==25)? "\n"$/:" "
end}

g is a matrix where each cell that has a country code is a 1 and all others are 0. All rows are written behind and the resulting binary number has been converted to a base 36 representation. Then I just iterate over all cells and check if the code shall be printed.

Ruby, 269

g="b6wapsm769n90ongzuvadg5vdat6ap7v1oyyie3j5wxbq9xtycezrtt9xamn9riqnnxnsxjx0al8uk8rmk5snb7quly7t5i9rkq21r1vnns5vdm7gwzqtxwwwmj02nqxlhl".to_i 36
l="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
676.times do|i|
print (g.to_s(2)[i]=="1")? l[i/26]+l[i%26]:"  "
print (i%26==25)? "\n":" "
end

g is a matrix where each cell that has a country code is a 1 and all others are 0. All rows are written behind and the resulting binary number has been converted to a base 36 representation. Then I just iterate over all cells and check if the code shall be printed.

Ruby, 269 246

g="b6wapsm769n90ongzuvadg5vdat6ap7v1oyyie3j5wxbq9xtycezrtt9xamn9riqnnxnsxjx0al8uk8rmk5snb7quly7t5i9rkq21r1vnns5vdm7gwzqtxwwwmj02nqxlhl".to_i 36
l=[*('A'..'Z')]
676.times{|i|print (g.to_s(2)[i]==?1)? l[i/26]+l[i%26]:"  "
print (i%26==25)? $/:" "
}

g is a matrix where each cell that has a country code is a 1 and all others are 0. All rows are written behind and the resulting binary number has been converted to a base 36 representation. Then I just iterate over all cells and check if the code shall be printed.

Source Link
stevecross
  • 381
  • 1
  • 6
Loading