cf/mirror

Nuclear Fusion

CF
71E2200· master1.5s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
10 3
Mn Co Li Mg C P F Zn Sc K
Sn Pt Y
Output
YES
Mn+C+K->Sn
Co+Zn+Sc->Pt
Li+Mg+P+F->Y
Sample 2of 3
Input
2 1
H H
He
Output
YES
H+H->He
Sample 3of 3
Input
2 2
Bk Fm
Cf Es
Output
NO
71E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)