- 0
- 0
- 约3.7千字
- 约 4页
- 2026-01-29 发布于北京
- 举报
3900‑摩尔质量
亚洲‑首尔‑2007/2008
有机化合物是包含碳元素的一类化学物质中的任何成员。有机化合物的摩尔质量是指一摩尔该有机化
合物的质量。可以通过原子量计算有机化合物的摩尔质量。
当给出一个有机化合物的分子式时,CHON博士希望找到其摩尔质量。分子式(如CHO,)通过
343
化学符号标识每个组成元素,并指示每种元素在该化合物的每个离散分子中出现的原子数。如果一
个分子含有某种元素的一个以上原子,则使用化学符号后的下标来表示这一数量。
在这个问题中,我们假设分子式仅由四种元素表示:`C(碳)、`H(氢)、`O(氧)和`N(氮),且不使用括号。
下表显示了`C、`H、`O和`N的原子量。
例如,分子式CHOH的摩尔质量为94.108g/mol,计算方法为6×(12.01g/mol)++6×(1.008g/mol)+
65
+1×(16.00g/mol)。
G给定一个分子式,编写一个程序来计算该分子式的摩尔质量。.
输入
您的程序需要从输入数据。输入包含T个测试用例。测试用例的数量T在输入的第一行给出。每个测试
用例单独占一行,包含一个作为字符串的分子式。化学符号由大写字母表示,字符串的长度大于0且
3900‑摩尔质量1/2
3900-Molarmass
Asia-Seoul-2007/2008
Anorganiccompoundisanymemberofalargeclassofchemicalcompoundswhosemolecucontain
carbon.Themolarmassofanorganiccompoundisthemassofonemoleoftheorganiccompound.Themolar
massofanorganiccompoundcanbecomputedfromthestandardatomicweightsoftheelements.
Whenanorganiccompoundisgivenasamolecularformula,Dr.CHONwantstofinditsmolarmass.A
molecularformula,suchasCHO,identifieseachconstituentelementbyitschemicalsymbolandindicates
343
thenumberofatomsofeachelementfoundineachdiscretemoleculeofthatcompound.Ifamolecule
containsmorethanoneatomofaparticularelement,thisquantityisindicatedusingasubscriptafterthe
chemicalsymbol.
Inthisproblem,weassumethatthemolecularformulaisrepresentedbyonlyfourelements,`C(Carbon),`H
(Hydrogen),`O(Oxygen),and`N(Nitrogen)withoutparentheses.
Thefollowingtablesh
原创力文档

文档评论(0)