解释:
1.代码专为本题编写,故输入字符数不能多于43个,且输入范围仅限大写英语字母2.将题中的42个字母BEEAKFYDJXUQYHYJIQRYHTYJIQFBQFBQDUYJIIKFUHC输入并回车3.得到的结果
CFFBLGZEKYVRZIZKJRSZIUZKJRGCREVZKJJLGVIDREforturn1
DGGCMHAFLZWSAJALKSTAJVALKSHDSFWALKKMHWJESFforturn2
EHHDNIBGMAXTBKBMLTUBKWBMLTIETGXBMLLNIXKFTGforturn3
FIIEOJCHNBYUCLCNMUVCLXCNMUJFUHYCNMMOJYLGUHforturn4
GJJFPKDIOCZVDMDONVWDMYDONVKGVIZDONNPKZMHVIforturn5
HKKGQLEJPDAWENEPOWXENZEPOWLHWJAEPOOQLANIWJforturn6
ILLHRMFKQEBXFOFQPXYFOAFQPXMIXKBFQPPRMBOJXKforturn7
JMMISNGLRFCYGPGRQYZGPBGRQYNJYLCGRQQSNCPKYLforturn8
KNNJTOHMSGDZHQHSRZAHQCHSRZOKZMDHSRRTODQLZMforturn9
LOOKUPINTHEAIRITSABIRDITSAPLANEITSSUPERMANforturn10
MPPLVQJOUIFBJSJUTBCJSEJUTBQMBOFJUTTVQFSNBOforturn11
NQQMWRKPVJGCKTKVUCDKTFKVUCRNCPGKVUUWRGTOCPforturn12
ORRNXSLQWKHDLULWVDELUGLWVDSODQHLWVVXSHUPDQforturn13
PSSOYTMRXLIEMVMXWEFMVHMXWETPERIMXWWYTIVQERforturn14
QTTPZUNSYMJFNWNYXFGNWINYXFUQFSJNYXXZUJWRFSforturn15
RUUQAVOTZNKGOXOZYGHOXJOZYGVRGTKOZYYAVKXSGTforturn16
SVVRBWPUAOLHPYPAZHIPYKPAZHWSHULPAZZBWLYTHUforturn17
TWWSCXQVBPMIQZQBAIJQZLQBAIXTIVMQBAACXMZUIVforturn18
UXXTDYRWCQNJRARCBJKRAMRCBJYUJWNRCBBDYNAVJWforturn19
VYYUEZSXDROKSBSDCKLSBNSDCKZVKXOSDCCEZOBWKXforturn20
WZZVFATYESPLTCTEDLMTCOTEDLAWLYPTEDDFAPCXLYforturn21
XAAWGBUZFTQMUDUFEMNUDPUFEMBXMZQUFEEGBQDYMZforturn22
YBBXHCVAGURNVEVGFNOVEQVGFNCYNARVGFFHCREZNAforturn23
ZCCYIDWBHVSOWFWHGOPWFRWHGODZOBSWHGGIDSFAOBforturn24
ADDZJEXCIWTPXGXIHPQXGSXIHPEAPCTXIHHJETGBPCforturn25
BEEAKFYDJXUQYHYJIQRYHTYJIQFBQDUYJIIKFUHCQDforturn26
经过英语分析,发现当移位密码密钥为17时,字符串有英文含义LOOKUPINTHEAIRITSABIRDITSAPLANEITSSUPERMAN(看天上,是一只鸟,是一架飞机,是一位超人)故移位密码密钥为17
1.6(司仲峰)对合密钥为0和13
1.7(陈诗洋)
(a)m=30=2*3*5
φ(30)=30*(1-1/2)*(1-1/3)*(1-1/5)=8故密钥量是8*30=240
(b)m=100=22*52
φ(100)=100*(1-1/2)*(1-1/5)=40故密钥量是40*100=4000
(c)m=1225=52*72
φ(1225)=1225*(1-1/5)*(1-1/7)=840故密钥量是840*1225=1029000
1.8(周玉坤)解:
在
中若元素有逆,则必有gcd(a,m)=1;
=1,利用广义欧几里得除法,找到整数s和
、
的解法都相
若元素a存在逆使得
a
t,使得:
sa+tm=1
,则=s(modm)是a的逆。
似,直接给出结果。
(1)
、
gcd(a,28)=1,则a=1,3,5,9,11,13,15,17,19,23,25,27.
(2)
、
=1
,=15
,
=19,
=5,
=17
,
=3
,
=25
,
=11
,
=23
,
=9
,
=27
gcd(a,33)=1,则a=1,2,4,5,7,8,10,13,14,16,17,19,20,23,25,26,
28,29,31,32
(3)
、
=1
,=10
,=7
,=13
,
=17
,
=25
,
=20,
=19
,=31
,=4
,=32
=29
=2,
=14,
=28
,=5
,=8
,
=26
,=23,=16
,
gcd(a,35)=1,则a=1,2,3,4,6,8,9,11,12,13,16,17,18,19,22,23,24,26,27,29,31,32,33,34
=1
,=16
,
=18,
=3,
=12
,
=9
,
=6
,=11
,
=22,=33
,
=4,
=2
=27
,
1.9(薛东)
=24
,=29
,
=8,=26
,
=32
,=23,
=19
,=17
,
=31
,=34
=13
设1≤a≤28,利用反复试验的方法求出a-1mod29的值。
解:
由乘法逆存在条件gcd(a,29)=1知a=1,2,3,…,28均存在逆元。
计算可得:
1-1=12-1=153-1=104-1=225-1=66-1=57-1=258-1=119-1=1310-1=311-1=812-1=1713-1=914-1=2715-1=216-1=2017-1=1218-1=2119-1=2620-1=1621-1=1822-1=423-1=2424-1=2325-1=726-1=1927-1=1428-1=28
1.10
(a)dK(y)=6y+19(mod29)(b)略
1.11(程玲)
(a)证明:
加密函数为e(x)=(ax+b)modn,即可令ax+b≡y(modn),等价ax≡y-b(modn),即x≡aˉ1(y-b)(modn),即x≡(aˉ1y-aˉ1b)(modn)要使k为对合密钥,则a≡aˉ1(modn),b≡-aˉ1b(modn)
即aˉ1modn≡a且b(1+aˉ1)≡0(modn),也就是b(1+a)≡0(modn)反过来,当aˉ1modn≡a且b(1+a)≡0(modn)可得
b(1+aˉ1)≡0(modn),即b≡-aˉ1b(modn),K为对合密钥
(b)解:
假设对合密钥为K=(a,b)
a要满足gcd(a,15)=1,可得a=1,2,4,7,8,11,13,14又因为a要满足aˉ1mod15≡a,则a=1,4,11,14
b需满足b(1+a)≡0(mod15)
当a=1,即2b≡0(mod15),可得b≡0(mod15)
当a=4,即5b≡0(mod15),可得b=0,3,6,9,12当a=11,即12b≡0(mod15),可得b=0,5,10当a=14,即15b≡0(mod15),可得b={x|x?
Z15}
篇二:
石头城阅读练习及答案
石头城
刘禹锡
山围故国周遭在,潮打空城寂寞回。
淮水东边旧时月,夜深还过女墙来。
(1)有人说后两句有两个字用的最好,请简要分析。
(3分)
参考答案:
旧、还。
(1分);旧有原来的之意,用旧来形容月(月本无新旧之分),便很自然地让人联想到过去繁华岁月,旧时月是它的见证。
然而繁华易逝,而今月下则祗剩一片凄凉。
(1分)末句的还字,意味着月虽还来,然而许多东西已一去不返了。
(1分)
(2)结合具体诗句,赏析本诗的艺术手法与思想感情:
参考答案:
情景交融。
(1分)这首诗咏怀石头城,表面看句句写景,实际上句句抒情。
(1分)诗人写了山、水、明月和城墙等荒凉景色,写景之中,深寓著诗人对六朝兴亡和人事变迁的慨叹,悲凉之气笼罩全诗,读之怆然。
(2分)
篇三:
高二英语测试题
高二英语测试题
第一节单项填空(共15小题;每小题1分,满分15分)
从A,B,C,D四个选中,选出可以填入空白处的最佳选项,并在答题卡上将该项涂黑
21.PreparationsarebeingmadefortheOlympicGames________inBeijingin201X.A.HeldB.holdingC.tobeheldD.tohold
22.Whenyougooutingwithyoursisters,youmustseeto________thattheyaresafe.A.everythingB.itC.themD.yourself23.—Tomisverystupid.Hefailsineveryexam.—Inmyopinion,heis________thanstupid.
A.lazierB.nolazierC.morelazyD.lazierrather
24.—I’lltalktomysonBillaboutitassoonaspossible.Heusuallylistens.—Weneed________listening.Weneedaction.
A.morethanB.lessthanC.notmorethanD.nomorethan
25.It'squiteobviousthattheagingpopulationinChinawillcause________heavypressureon________wholesocietyinthefuture
A.a;aB.the;/
C.a;theD./;the
26.HelpwillcomefromtheUN,buttheaidwillbe________nearwhatisneeded.A.everywhereB.somewhereC.anywhereD.nowhere
27.Themailwas________fortwodaysbecauseofthesnowstorm.A.heldoutB.heldoffC.heldupD.helddown28.Whyis________youaresolatefortheclass?
A.itthatB.thatit
C.itD.that
29.ScientistsbelievenativeAmericansarrivedbycrossingthelandbridgethatconnectedSiberia(西伯利亚)and________morethan10,000yearsago.A.thisisAlaskaB.Alaskaisnow
C.isnowAlaskaD.whatisnowAlaska
30.JackisoneofthosemenwhoIamsurealwaysdo________besteveninthemostdifficultsituations.
A.hisB.yourC.theirD.one’s
31.—I’msorry,Ishouldn’thavebeensorudetoyou.—You________yourtemperbutthat’sOK.
A.havelostB.hadlostC.didloseD.werelosing
32.Toeverybody’ssurprise,thefashionableyounglady________tobeathief.
A.foundoutB.provedout
C.putoutD.turnedout
33.Thisphotoofminewastaken________stoodthefamoushightower.
A.whichB.inwhichC.whereD.there
34.Ifyoukeeppracticingyoursoninfootball,he________tobeafamousplayer.A.wantsB.hopes
C.wishesD.promises
35.You________havetoldhimthebadnews,whichmadethingsevenworse.A.shouldn’tB.needn’t
C.couldn’tD.wouldn’t
第二节完形填空(共20小题;每小题1.5分,满分30分)
阅读下面短文,掌握其大意,然后从36-55各题所给的四个选项(A,B,C和D)中,选出最佳选项。
Itisgenerallyacceptedthattheexperiencesofthechildinhisfirstyearslargelydeterminehischaracterandlaterpersonality.Everyexperience36thechildsomethingandtheeffectsare.“Upbringing”normallyusedtorefertothetreatmentandtrainingofthechild38thehome.Thisisclosely39thetreatmentandtrainingofthechildinschool,whichisusuallydistinguished(区别)bytheeducation”.Inasocietysuchasours,both41andteachersareresponsibleforthechancesprovidedforthedevelopmentofthechild,42upbringingandeducationdependoneachother.
Theidealsandpracticesofchildupbringingaredifferentfromculturetoculture.43themorerural(农村的)thegroup,themorethecustomsofchildupbringing.Inmoretechnologicallydevelopedsocieties,childhoodandadolescence(青春期)arelikelylongtime,Earlyupbringinginthe48isnaturallyaffectedbothbytheculturalpatternofthegroupandbytheparents'49andtheiraimsanddependsnotonlyonupbringingandeducationbutalsoontheabilitiesofthechild.Widedifferencesofintelligence(智力)andcharacter51eveninchildrenofthesamefamily.
Parentscan52whatisnormalinphysical,mentalandsocialdevelopment,by53someofthemanybooks54onscientificknowledgeintheseareas,or,lessdependablesincethesample(实例)issmaller,bycomparing55withfriendsandrelativeswhohavechildren.36.A.offers37.A.dangerous38.A.from
B.affordsB.limitedB.for
C.teachesC.immediateC.outofC.madefromC.kindC.studentsC.inthatcaseC.GenerallyC.unusualC.tospendC.hopingfor
D.paysD.increasingD.withinD.relatedtoD.age
D.classmatesD.evenifD.HoweverD.curiousD.tospreadD.waitingfor
39.A.coveredwithB.devotedto40.A.termB.time41.A.childrenB.parents42.A.sothatB.solongas43.A.surprisinglyB.Besides44.A.strange45.A.tocover46.A.resultingin
B.unchangableB.tochangeB.beginningwith
47.A.body
48.A.school49.A.care
50.A.wonderful51.A.happen
B.brainB.homeB.luckB.greatB.makeB.findoutB.lookingintoB.decidedB.letters
C.characterC.societyC.abilityC.namedC.existC.workoutC.holdingoutC.basedC.notes
D.educationD.worldD.jobD.bornD.holdD.makeupD.takingupD.carriedD.answers
52.A.bringdown53.A.referringto54.A.called55.A.books
第三部分:
阅读理解(共20小题;每小题2分,满分40分)
阅读下列短文,从每题所给的四个选项(A,B,C和D)中,选出最佳选项。
A
ByLOSANGELESTIMESPublishedon201X-02-10
Postedon201X-01-1810︰59︰54
Nervousuncertaintysurroundsthefate(命运)ofUSjournalistDanielPearl,withnoclearcommunicationfromhiskidnappers(绑匪)andnosignofhiswhereaboutsafterthreeseparatepolicesearchesforhisbodyinthetroublesomepertcityKarachi,Pakistan.
Pearl,a38-year-oldWallStreetJournalreporter,