首页
登录
职称英语
A certain online form requires a 2-digit code for the day of the month to be ent
A certain online form requires a 2-digit code for the day of the month to be ent
游客
2025-02-27
26
管理
问题
A certain online form requires a 2-digit code for the day of the month to be entered into one of its fields such as 04 for the 4th day of the month.The code is valid if it is 01,02,03…31 and not valid otherwise. The transpose of a code xy is yx.For example,40 is the transpose of 04.If N is the number of valid codes having a transpose that is not valid,what is the value of N?
选项
A、12
B、13
C、18
D、19
E、20
答案
D
解析
It will be quicker to count the number of valid codes whose transposes are valid codes, and then subtract the result from 31 (the number of valid codes) to obtain the value of N.
Three such codes begin with 0: 01,02,03. The rest are such that their transposes are invalid codes.
Four such codes begin with 1:10,11,12,13. The rest are such that their transposes are invalid codes.
Three such codes begin with 2:20,21,22. The rest are such that their transposes are invalid codes.
Two such codes begin with 3: 30,31. The rest are invalid codes.
Therefore, the total number of valid codes whose transposes are valid codes is 3 + 4 + 3 + 2 =12, and hence the total number of valid codes whose transposes are not valid is 31 - 12 = 19.
The correct answer is D.
转载请注明原文地址:https://tihaiku.com/zcyy/3974613.html
相关试题推荐
Acertainonlineformrequiresa2-digitcodeforthedayofthemonthtobeent
Onacertainnumberline,if8isdistanceof18fromn,and17ishedistanceo
Acertainmathematicaloperationmayberepresentedbythesymbol@.Forallnonz
Inacertainbox,thereare3timesasmanyredballsasblueballs.Whichofth
Thereare120employeesinacertaincompany.If36oftheemployeesareinthe
Homeostasis,ananimal’smaintenanceofcertaininternalvariableswithinan
Certainmessengermoleculesfightdamagetothelungsfromnoxiousairbytellin
Manystatelegislaturesareconsideringproposalstotheeffectthatcertainpol
55.Acertainspeciesofbirdhastwobasicvarieties,crestedandnoncrested.Th
AuthoritiesinCaliforniarequireddriverstousetheirheadlightsonacertain
随机试题
Henrywasn’tpaidbecausehewasthe______secretaryoftheassociation.A、honor
MostAmericansretireaftertheageofsixty.Theusualageofretirementis
ChooseTWOletters,A-E.WhichTWOofthefollowingpointsdoesthetutorwarns
一、根据所给图表资料回答101~105题。 部分国家国际旅游人数统计表单
引起病毒性脑炎最常见的病原体是A.脑膜炎双球菌 B.溶血性链球菌 C.金黄色
属于会议总结环节的一项是A:执行会议决议 B:记录会议纪要 C:报道会议消息
由政府提供政策优惠,社会投资建设,限定套型面积和销售价格,按照合理标准建设,面向
对战时共产主义政策,一位农民曾说土地属于我们,面包却属于你们;水属于我们,鱼却属
根据公司法律制度的规定,当公司出现特定情形,继续存续会使股东利益受到重大损失,通
某安全评价机构对一项目进行安全评价,出具虚假评价报告,尚不够承担刑事责任,依据《
最新回复
(
0
)