21
\$\begingroup\$

This question already has an answer here:

Apparently, we really like printing the alphabet in different languages.

How about the Russian Cyrillic alphabet?

Print/output/return this exact text (trailing whitespace is permitted)

АаБбВвГгДдЕеЁёЖжЗзИиЙйКкЛлМмНнОоПпРрСсТтУуФфХхЦцЧчШшЩщЪъЫыЬьЭэЮюЯя

This is the Russian Cyrillic alphabet with upper and lower case interleaved (eg AaBbCc...)

This is so crunch those bytes folks!

\$\endgroup\$

marked as duplicate by FlipTack, Wheat Wizard code-golf Dec 9 '17 at 23:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 8
    \$\begingroup\$ @EriktheOutgolfer This Unicode order of these make for a very different challenge. \$\endgroup\$ – Adám Jun 21 '17 at 10:31
  • \$\begingroup\$ Is outputting an array of individual characters permitted? \$\endgroup\$ – Shaggy Jun 21 '17 at 11:16
  • \$\begingroup\$ For Ёё, may we output codepoints U+00CB and U+00EB instead of U+0401 and U+0451? \$\endgroup\$ – ETHproductions Jun 21 '17 at 17:04
  • 1
    \$\begingroup\$ @ETHproductions no, the text must be outputted exactly \$\endgroup\$ – Skidsdev Jun 21 '17 at 17:14
  • 3
    \$\begingroup\$ Do we have to use Unicode? Or can we use an 8-bit Cyrillic encoding? \$\endgroup\$ – KSmarts Jun 22 '17 at 13:43

33 Answers 33

0
\$\begingroup\$

Haskell, 80 bytes

import Data.Char;f=putStr$(\x->[x,toLower x])=<<['А'..'Е']++'Ё':['Ж'..'Я']
\$\endgroup\$
  • 1
    \$\begingroup\$ Welcome to the site! :) \$\endgroup\$ – DJMcMayhem Jun 22 '17 at 21:49
0
\$\begingroup\$

Perl, 37 bytes

print map{chr.chr($_+32)}(1040..1071)

It's annoying that Perl's character autoincrement only works for the Latin alphabet. I could save so many characters if it worked outside that range.

\$\endgroup\$
0
\$\begingroup\$

Charcoal, 45 44 bytes

FEHIJKLMiNOPQRSTUVWXYZ[\]^_`abcdefg℅⁺℅ιφ⁺↥ιι

Try it online! The deverbosifer gets confused by this string for some reason. Explanation:

FEHIJKLMiNOPQRSTUVWXYZ[\]^_`abcdefg
for (Map("HIJKLMiNOPQRSTUVWXYZ[\\]^_`abcdefg",

Loop through ASCII characters whose codes happen to be exactly 1000 less than the desired Russian lower case letters.

  ℅⁺℅ιφ
  Character(Plus(Ordinal(i), f))))

Calculate the Russian lower case letter by adding the predefined variable φ (f) which has the value 1000.

    ⁺↥ιι
    Print(Plus(Uppercase(i), i));

Print the upper and lower case letters. («↥ιι would probably also work.)

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.