Chem_String
CodeChefOpen on judge ↗
Komal has joined fiitjee for preparing jee main exam.One day while attending the class of organic chemistry, She found interest in the molecular structure of an organic compound and very curious to find how many atoms of each element are contained in the molecule so help her. Molecular structure (a string) containing the symbols of chemical elements, numbers and possibly parentheses. For example,
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start