首页
登录
职称英语
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
游客
2024-01-13
22
管理
问题
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/3360051.html
相关试题推荐
Inasecondhandbookshop,Billycameacrossabookwhichhethoughtwascertain
Nomatterwhoyouareorwhereyoucomefrom,onethingiscertain:youarea
Nomatterwhoyouareorwhereyoucomefrom,onethingiscertain:youarea
Customer:______Receptionist:Certainly,doyouhaveareservation?Customer:
Understandingthistransitionrequiresalookatthetwo-sidedconnectionbe
Infact,manystudiesindicatethatafteracertainpoint,anyone’sproductivity
Canonlineeducationeverbeeducationoftheverybestsort?NotlongagoI
Ourpreferencesforcertaincolorsare______accordingtothepassage.[br]Whi
Ourpreferencesforcertaincolorsare______accordingtothepassage.[br]If
Thedegree______youmaintainyourmentalhealthmaydependoncertainsimpleenv
随机试题
Formanypeople,geneticallymodifiedfoodsraiseallkindsofquestions.Pa
下列关于血清碱性磷酸酶测定原理错误的是A.ALP催化4-NNP水解 B.对硝基
胆管癌易发生在胆管的A.上1/3 B.中1/3 C.下1/3 D.Vate
甲型肝炎的主要传播途经是( )。A.母婴 B.呼吸道 C.血液 D.土壤
急性阑尾炎早期脐周或上腹疼痛的原因是A.阑尾位置变动 B.阑尾管壁充血 C.
下列各项,对于鉴别水肿与鼓胀无意义的是()A.有无腹壁青筋暴露 B.有无
功能制护理的特点不包括A:节省人力 B:分工不明确,不利于按护士能力分工 C
肝性脑病合并碱中毒时应选用A.谷氨酸 B.精氨酸 C.鸟氨酸 D.色氨酸
妊娠期母体变化的描述,错误的是A.孕妇的夜尿量<日尿量 B.妊娠后期睡眠时稍垫
在含硫化氢的作业环境下进行作业时,应根据现场作业人员情况配备相应数量的()A:正
最新回复
(
0
)