40
7
Your challenge is to print/output/return this text:
_____ _____
| 1 | | 2 |
| H | | He |
|_____|_____ _____________________________|_____|
| 3 | 4 | | 5 | 6 | 7 | 8 | 9 | 10 |
| Li | Be | | B | C | N | O | F | Ne |
|_____|_____| |_____|_____|_____|_____|_____|_____|
| 11 | 12 | | 13 | 14 | 15 | 16 | 17 | 18 |
| Na | Mg | | Al | Si | P | S | Cl | Ar |
|_____|_____|___________________________________________________________|_____|_____|_____|_____|_____|_____|
| 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 |
| K | Ca | Sc | Ti | V | Cr | Mn | Fe | Co | Ni | Cu | Zn | Ga | Ge | As | Se | Br | Kr |
|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|
| 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 |
| Rb | Sr | Y | Zr | Nb | Mo | Tc | Ru | Rh | Pd | Ag | Cd | In | Sn | Sb | Te | I | Xe |
|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|
| 55 | 56 | 57 \ 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 |
| Cs | Ba | La / Hf | Ta | W | Re | Os | Ir | Pt | Au | Hg | Tl | Pb | Bi | Po | At | Rn |
|_____|_____|_____\_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|
| 87 | 88 | 89 / 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 |
| Fr | Ra | Ac \ Rf | Db | Sg | Bh | Hs | Mt | Ds | Rg | Cn | Nh | Fl | Mc | Lv | Ts | Og |
|_____|_____|_____/_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|
____________________________________________________________________________________
\ 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 \
/ Ce | Pr | Nd | Pm | Sm | Eu | Gd | Tb | Dy | Ho | Er | Tm | Yb | Lu /
\_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____\
/ 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 /
\ Th | Pa | U | Np | Pu | Am | Cm | Bk | Cf | Es | Fm | Md | No | Lr \
/_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____|_____/
Rules:
- The empty line count between the two parts can be any amount (including 0)
- Each line can have prepending and appending spaces as long as the two parts look correctly and the second part is indented at least one space more than the first one.
- You may have appending/prepending newlines and/or spaces.
- You may not use tabs for spacing (as long as there isn't an interpreter which replaces them correctly with spaces).
- Because of a mistake of mine, you can choose to use
______ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____ _____
as the 1st line of the second part.
Data:
you can use this text as a reference (but not as input):
Contents: symbol, atomic number, group, period
groups 8 & 9 and periods 4-17 are used for the second part.
H 1 1 1
He 2 18 1
Li 3 1 2
Be 4 2 2
B 5 13 2
C 6 14 2
N 7 15 2
O 8 16 2
F 9 17 2
Ne 10 18 2
Na 11 1 3
Mg 12 2 3
Al 13 13 3
Si 14 14 3
P 15 15 3
S 16 16 3
Cl 17 17 3
Ar 18 18 3
K 19 1 4
Ca 20 2 4
Sc 21 3 4
Ti 22 4 4
V 23 5 4
Cr 24 6 4
Mn 25 7 4
Fe 26 8 4
Co 27 9 4
Ni 28 10 4
Cu 29 11 4
Zn 30 12 4
Ga 31 13 4
Ge 32 14 4
As 33 15 4
Se 34 16 4
Br 35 17 4
Kr 36 18 4
Rb 37 1 5
Sr 38 2 5
Y 39 3 5
Zr 40 4 5
Nb 41 5 5
Mo 42 6 5
Tc 43 7 5
Ru 44 8 5
Rh 45 9 5
Pd 46 10 5
Ag 47 11 5
Cd 48 12 5
In 49 13 5
Sn 50 14 5
Sb 51 15 5
Te 52 16 5
I 53 17 5
Xe 54 18 5
Cs 55 1 6
Ba 56 2 6
La 57 3 6
Hf 72 4 6
Ta 73 5 6
W 74 6 6
Re 75 7 6
Os 76 8 6
Ir 77 9 6
Pt 78 10 6
Au 79 11 6
Hg 80 12 6
Tl 81 13 6
Pb 82 14 6
Bi 83 15 6
Po 84 16 6
At 85 17 6
Rn 86 18 6
Fr 87 1 7
Ra 88 2 7
Ac 89 3 7
Rf 104 4 7
Db 105 5 7
Sg 106 6 7
Bh 107 7 7
Hs 108 8 7
Mt 109 9 7
Ds 110 10 7
Rg 111 11 7
Cn 112 12 7
Nh 113 13 7
Fl 114 14 7
Mc 115 15 7
Lv 116 16 7
Ts 117 17 7
Og 118 18 7
Ce 58 4 8
Pr 59 5 8
Nd 60 6 8
Pm 61 7 8
Sm 62 8 8
Eu 63 9 8
Gd 64 10 8
Tb 65 11 8
Dy 66 12 8
Ho 67 13 8
Er 68 14 8
Tm 69 15 8
Yb 70 16 8
Lu 71 17 8
Th 90 4 9
Pa 91 5 9
U 92 6 9
Np 93 7 9
Pu 94 8 9
Am 95 9 9
Cm 96 10 9
Bk 97 11 9
Cf 98 12 9
Es 99 13 9
Fm 100 14 9
Md 101 15 9
No 102 16 9
Lr 103 17 9
Built-ins that give any info about the periodic table of elements are allowed but should be viewed separately from non-built-in solutions.
The shortest code per language wins!
Is it okay to invert the slashes (all of them)? Is it okay to make the cells bigger or smaller? – John Dvorak – 2017-03-31T13:45:46.350
@JanDvorak I'd say no as it changes the shape of the bottom portions joining – dzaima – 2017-03-31T13:48:56.477
@dzaima I'd change those slashes as well, of course – John Dvorak – 2017-03-31T13:49:35.480
@JanDvorak All that you can change is what's specified in the post. – dzaima – 2017-03-31T13:57:01.300
I was expecting a challenge to generate the electron shells of the known elements :) – JollyJoker – 2017-03-31T14:44:13.237
@JollyJoker I was thinking to make that an another challenge after this! – dzaima – 2017-03-31T14:46:18.700
The upper border of the lantanidies features a few whitespaces in between, while the upper borders in the main table doesn't. Is this intentional? – Victor Stafusa – 2017-03-31T15:28:09.040
@dzaima I think that allowing both is the best option since that was a mistake. – Victor Stafusa – 2017-03-31T15:52:35.677
3@dzaima Can we use the power of THE INTERNET? – Feathercrown – 2017-03-31T23:35:18.563
2
@Feathercrown pretty sure that counts as this standard loophole
– dzaima – 2017-04-01T10:13:38.833@dzaima thought so :P – Feathercrown – 2017-04-02T00:10:41.040
1
@JollyJoker http://codegolf.stackexchange.com/questions/62030/electron-configuration-diagrams
– Beta Decay – 2017-04-03T16:25:41.0572Working on a 400-ish byte answer that may blow everything out of the water... incoming in 10 days lol. – Magic Octopus Urn – 2017-06-07T14:15:26.550
7THOSE SLASHES ARE PURE EVIL. PURE EVIL I TELLS YA! – Magic Octopus Urn – 2017-06-08T15:14:39.043
The newline count between the two parts can be any amount.
Is zero allowed as they are still separated? – l4m2 – 2018-07-12T08:49:26.370@l4m2 if you mean 0 empty lines (as 0 newlines would mean the two lines are on the same line (which should be mentioned in the spec..)), yes – dzaima – 2018-07-12T08:52:57.787
You may not use tabs for spacing (as long as there isn't an interpreter which replaces them correctly with spaces).
what if tabs before the second part so any amount of spaces was allowed – l4m2 – 2018-07-12T14:46:26.550(if I interpreted your question correctly) no, tabs before the second part aren't allowed as tabs don't have a consistent defined width (besides, 1 space is enough so why bother with tabs?) – dzaima – 2018-07-12T15:06:46.963