Вы находитесь на странице: 1из 11
BAPUAHT 8 Yactp 1 Orseramn x sanaunm 1-23 mBnmorcA 4Mcno, nocneqoBaTenbHOcTs GyxB HAN UNOp, KoTOpsIe cneayeT SanvcaTs B Gnanx OTBeToB NP 1 cnpasa OT HoMepa CooTEeT- creyowero sanaHnn, Hayman ¢ nepsod KneToKn, 6e3 npoGenos, sanaTex 4 apyrux RONGAHHTENDHEX CHMBONOS. KaKAL CAMBON NMWHTE B OTAENHOM KneTOUKe B COOT- BETCTEHM C NPMBEAEHHEIMN 8 GnaHKe OOpasuamn. (Ckompxo sHauamnx HyZteit B AOMAHO! sanucH AecaTHMHOTO HACIA 509? Omeem: Dax oparment raGmmus nerninocrn pipaxenns F: x1 x2 x3, x4 x5 x6 xT F oO 0 oO 0 1 1 Oo oO oO 1 1 7 0 1 0 1 oO 0 oO oO 1 o 1 oO Kakm siipaxkenuem Mower Onitb F? 1) ~xLA 2A xB AA N25 Ax6\ ~2T 2) ~x1 vx2vx8vx4 v—-x5 v—x6.V27 8) Ax1 A x2 4x80 x4 AnxB A x6 -27 4) x1 v-x2v x8 v-x4v -x5.v-x6.vx7 Bornere sanmumate HoMep BEIpAx eHHA. Omeem: Mexay nacenéumsimn nynkramn A, B, C, D, E, F, Z nocrpoewst zoporn, UporaxéHHocTh KOTOPLIX MpuBezeHa B Tabanue. (OrcyTcTBMe 4wHCTA B Ta6mmue osHayaeT, 4TO MPAMOM AOpOrH MexAY NYHKTAMM HeT.) A B | c p | £ F zZ A 8 | 7 13 30 B 8 35 4 | c 7 35 5 | | D 13 4]o5 5 nn | 14 |e | 5 a | 7 | F | 1 | 33 6 | z 30 ult 6 Onpegeamre amy Kparuaitmero nyTH Mexkay nyHKramm A w Z (mpst ye- AOBHM, UTO NepeABUraTScA MO*KHO TOAbKO No TOCTPOeHHEIM Aoporam). Omeem: reneit. Hndopmanus mpererasena sHayennem noma ID B coornercr- Bytoulei ctpoxe raGrmust 1. Onpenenure ua ocHonanun mpupexéannx mauuirx ID qBoropomuoik ceetpst Toxaps 0.C. ‘Tabanna 1 ‘Pamunns_H.0. Kren A.B. Kpasen HIT. Kpasen IM Kpaszen III. 22 28 31 Myapux A.M. 32 Myapux B.C. 33 Myapuxc.c, | 41 Tkav Ac. | Toxaps 0.C. Toxape 11.0. Ulpen ILA. 44 8)3]5/8]=/8/S]5/8/=S/S) 518 Omeem: . To kavany ceaau nepenaiorca cooSmexna, cofepakamne TomsKo 8 6yK- su: A, B, C; Ais mepexaum ucnomayetca qROMUHBII KOR, Jomyc: kaiomuit onHosHaNHoe AeKoMponanne. [kin 6ykB A HB ucrompayioTca Taxite KofoBbie cnoRa: A: 10, B: 0. Yxaoxure Kparuaiitee Koqosoe cxoso Axa GyxBEr C, mpH KoTOPOM Kom GygeT qonycKaTs omHOsHadHoe AeKogupoBanne. Ecam traxux KogoR He- CKONBKO, YKARKHTe KON C HAMMeHLITHM YHC-TOBEIM SHAyEHHEM, Omeem: VY ucnoanurena Jlennrenp nue KoManABI, KOTOPHIM NpHeBoeHB HOMepA: Leura 1, 2, pasmemm na 2, Bumnonnsa nepsyio m3 ux, Jlexures Boramraer 13 YHena na oKpane 1, a BEITOTHAR BTOPy!0, AeHT ero Ha 2. SanurmMTe MOpAROK KOMAHA B T1pO- rpamMe nomyyenua us umcna 57 umcna 7, cogep2xameii He Gomee 5 KOMAHA, YRASHIRAM THIIIb HOMepa KOMAHZ. (Hanpumep, mporpamma 11221 — ato nporpamma suraTH 1 perern 1 pagnemm Ha 2 pasneam Ha 2 perarn 1, Tan bparmenr anexrponnoit ra6nmus1, caHbI UHC, a BO Bropolt — opmy.nnI: B neprofi crpoke KoTopoit Samm A B c D 4 6 3 2 =B1-Al =B1/C1 =C1*D1 =Al-D1 Kakoe 4ncx0 JouKHO ObITD sanMcaHO B AueMKE D1, ros nocrpoeHHad mocae BEInomHeHHs BETUMCIeHMii Kpyropas qMarpaMMa mo aHaye- HMAM AManaszoHa aueex A2:D2 coorsercrBosa- aa pucyuxy? Omeem: Onpezenure, ur0 Gyzer Hasewarano » pesyabrate BuinloaneHua mpo- rpamau (sanucannoit nume Ha pasneix savikax npozpaxmuposanus). Beitcux Tackane DIM N, S AS INTEGER var n, s: integer; N= 0 begin s=0 nor= OF WHILE S <= 47 s = 07 N=NH1 while s <= 47 do S=s+5 begin weND nisatd; PRINT W siss+5 ends write (n) end. Cu Aaropurmmieckstit #include jaar void main() vay ( nen n, s int n, s: n=O n= 0; si 0 Hu MOK. b 10. 1. 12. 13. Ckopocts nepenai 7aHHHX MojeMom 0 mpoToKomy V.92 cocrasaser 56 000 Gur/c. Hepenava aia npy noMomIM JaHHoro npoToKomA sansa 20 cexyay. Onpenenute pasmep oaiiza B Gaiirax. Omeem: Onna sueiixa namary (oun tput) rpowsHoit IBM (Kommpworepa, ocHo- BAHHOTO Ha TPOHHO! CHCTeMe CHHCTEHHA) MO2KET MPHHUMAT OHO ua Tpéx BooMOrHEIX sHaveHHit. Hexoropas BenHUMHA 1OI2KHA IPHHHMATS 9 paammunpix sHavennii. Kakoe HauMenbulee KomMueCTRO AueeK TAMATH HeOOXOAMMO OTBECTH AVI XPAHeHHA AaHHOl BEMMIMHEI? Omeem. AJITOpHTM BEIHCeHHS sHAYeHHA dbyHKuMH F(n), ren — HaTypamBHoe ‘WICO, 3alaH cle_yIOUUMM COOTHOLIeHHAMH: FQ) F(a) = F(n-1) + 3*n , opan>1 Yemy papuo anavenne dbynxunn F(4)? Bomeeme sanuuume moavko namypaavioe wuca0. Omeem: . B tepmunomorun cereii TCP/IP mackoii cera HaasiBaeTes mBOHHOE HAC NO, onpenestsiomiee, Kakas wacrs IP-ampeca yaita ceTH OTHOCHTCS K anpe- cy ceTH, a Kaka — K agpecy camoro yaaa B aTO ceTu. OOnrdHO MacKa ganuceiBaercs no TeM 2e NpaBustam, 470 u IP-agpec. Agpec ceru nony- ‘yaeTca B pesybTaTe NPHMeHeHMA TopaspaqHOl KOHBIONKUMM K aaqaH- nomy IP-aqpecy yaa H Macke. Tlo sananinim IP-agpecy yana u Macke onpeneaure anpec cern. IP-anpec yaa: 130.129.207.192 Macka: 255.255.224.0 Tipu sanucu ornera auiGepure ua npunenéuunix B TaGaMNe UHCeN YeTEIpE amementa IP-agpeca ceTH M aaMMUNMTe B HY2KHOM MopsqKe cooTserct- ByTOUHe HM OyKsbI, 6e3 HenoNbIOBAHUA TOUeK. A B c D | £E F G H 0 128 | 129 | 130 | 192 | 207 | 224 | 255 Omeem: ‘ B mapaone yuacrayior 300 arzeros. CnenuanbHoe yerpoiicrno perncr- PHpyer MpOXooKAeHHe K@KALIM HI YYACTHUKOB MpoMexyTOUHOrO ‘UHH Ula, SaNHchIBAs ero HOMep C HCTIObSOBAHHEM MHHHMATBHO BOSMOXHOTO KomMuectBa 6uT, OAMHAKOBOTO AIA KaxKZOrO croptemeHa. CKomBKO Gaitr TAMATH GbLTO HCTIOTEIOBAHO YCTPOHCTBOM LIK SANHCH COOOMeHU, MOcTe Toro Kak mpoMexkyTounsii bun mpomt 160 cnopremexon? 14, 15. 16. Cucrema komang ucpomaHTess POBOT, «oxHBymleror 8 mpaMoyromsHOM xaGupunte Ha kxeTuaroil nocKocTH: BEepx BEES Baeno BIpazo Tipu semonnennu otHx Komana POBOT nepememaerca Ha onHy KneTKY coorsercTseHuo: BRepx 7, BHHS \, BIeBO <~, BUpABO >. Yersipe KoMaHAEI npoBepsIOT HCTHHHOCTS yoOBUA OTCYTCTBHS CTeHBI y Toit KsrerkH, re HaxoguTes POBOT: cenepxy cunay nena cnpasa cnoGoxuo | croGonxo | cnoGogno | cnoGoxHo Tne TIOKA < yenoaue > xomanda BHIMOHAETCA, OKA YCIOBHE HCTHHHO, MHAYe NPOMCXOANT Mepexon Ha caeqyromtyso erpoxy. Ecau POBOT nawnér awxenne » cropony creusi, 70 of paspymures 1 mporpamma mpeppéres. Ckossko KeToK npuBeséuHoro naSHpunta cooTneTcrayer TpeGonaHuio, 470, BBIOAHME MpeqsorxeHHYIO HHDKe Mporpammy, POBOT yuesteer 4 oc- TAHOBHTEH B Toll 2e KJeTKe, ¢ KOTOpol OH HAYA ABHKEHHE? HAYAJIO TIOKA < crepxy csoGorHo > snpano TIOKA < cmpasa cno6oquo > BHua TIOKA Baeno TIOKA < caena caoGogHo > BRepx KOHEIL Omeem: Ha pucynxe — exema qopor, caassrsaromx ropora A, B, B, I’, JI, E, 2K. Tio kaxkgoit AOpore MO2KHO ABHTATHCA TOAbKO B OAHOM HanpaBseHHH, yKasannom crpesmoit. CkombKo cymecrsyer pastunnix ryteit us ropoqa A sropox 2K? 5 a “SON r E Omeem: « Banummre jecaTuuHoe YHCAO 357 B cHETeMe CUHCAeHHA ¢ OcHORAHHEM 7 ( orere yKasxuTe TomBKO mMppEI, OcHOBAHHe cucTeME: CUNCTEHHA He ykaszrBaiire). 17. 18. 19. B gauike sampocos monckosoro cepsepa qua OGosHaYeRUA sOrMuecKOit onepanun «HJIM> ucnonnayetes cumnon «|», a quis normueckoit onepa- nun «H+ — canon «&>, B raGamue mpHneseHst sampocst H KoMMYECTBO HaliqeHHEIX HO HUM CTpa- HHI, HeKOTOporo cermenta cen MuTepHer. Banpoc Haiigeno crpannu (8 TsIcr4ax) @pezam & Bcuuney 1400 " ®pezam 4500 Bemuney 3100 Kaxoe kommuecrso erpanmu ( Ts1en4ax) 6yzer HaiiqeHo rio sampocy: pecam | Iemuney? Cunraercs, ¥70 BCe SAMPOCBI BEITOTHSATHCS NPAKTHYECKH OHORPEMeH- Ho, Tak ¥TO HaGop cTpaHHY, ComeprKalLHXx BCe HCKOMBIe cn0Ba, He UsMe- isles 38 BpeMa BAINONHeHHA aNpOCOR. Omeem: . Ha wucnopoi mpaMoii AaHBI ABA oTpeaKa: P = [27; 50] w @ = [45; 62). ‘YkaxkuTe HaMMeHBUTyI0 BOSMOXHYW AMHY TaKorO oTpesKa A, 4TO (op- mya (x © P)— (x € Q) A (x € A)) + (x € P)) HeTHHHA IPH 060M aHaveHUH NepeMeHHOH x, T.e. MpHRUMAeT SHAeHHe 1 mpu m1060m suavennu nepemennoit x. Omeem: : B mporpamme ucnomkayerca ogHoMepHBIt WeTOWMCHeHHBI MaccHB A c HHekcamu or 0 40 9. 3HaueHHA sTeMeHTOR paBHET 2; 7; 3; 6; 4; 1; 0; 2; 5; 6 coornererserno, v.e. Af} = 2; A{1]=7 H7.2. Onpegeanre sHavenve nepemeHHoli c mlocme BEINONHeHHS CaeayIouero (bparmenta nporpaMMst, sanMcaHHoro HH2Ke Ha PASHLIX ABLIKAX Mpo- rpaMMuponanus. Beiicnk Tackan e=0 c= Or FOR i = 1 70 9 for i :=1 to 9 do IF A(i - 1) > A(i) THEN if A[i - 1] > Afi] then c=ct#l begin t= ali) AG) = A(@i - 1) tor Alils AG- 1 =t Ali] == Ai - 117 Cu for (i= 1 if (A[i-1] > ALi) i <= 9; i++) ior 1 zo 9 ( etl ett: t r= ALi) t= Alils AL] i= ALG - 1) Ali] = ALi - 1]; Ali - a) rst ALL - 1) = pee ’ ku Omeem: Hunxe wa versipéx sanikax sarucan anroputM. Tonyune Ha Bxoq 4HCT0 X, 9TOT ANFOpUTM NeyaTaeT ABA UNCIA: dub. V@KHTE TaKoe 4HCHO x, ApH BAOse KOTOpOro aNTOpHTM NeHaTaeT cHavana 2, a TOTOM 81. Beitenr Tlackaas DIM X, A, B AS INTEGER INPUT X var x, a, b: integer; begin AsO: Bel readin (x); WHILE X > 0 A= Atl B = B*(X MOD 10) begin K=xX\ 10 WEND PRINT A PRINT B end; writeln(a)z write(b); end. Cu Aaropurmiraecknit #include ann void main() yay { int x, a, b: scant("8d", 6x); a=0; bel; while (x>0) { asatl; mod (x, 10) b=b* (x810); fiw (x, 10) x= x/10; ku } BuBOn a, HC, b printf ("td\ntd", a, b); Kon 21. Hamuumre b orsere uncno, Koropoe 6yqer Hanevaraxo B peayubTaTe BEI- MomHeHHs cnenyiomero anropuTma (qua Bamero yso6crsa anropuT™ mpemcrasnen Ha werEIpéx ABbIKAX). Beitewx Tackans DIM A, B, T, M, -ll: Beal A: R = F(A) FOR T= A TOB IF F(T) < R THEN Met R = F(T) END IF NEXT T PRINT M R AS INTEGER FUNCTION F(x) B= 2* (x*x-25) * (x*x-25) +5, var a,b, t,M/R rinteger; Function F(x:integer) :integer; begin 2* (x*x-25) * (x25) +5, ll: Fla); r= a to b do begin if (F(t) anr int F(int x) maw ( uen a, b, t, M, R return 2* (x*x-25) * (x*x- ate-1; b i=l 25) +5; M r= a; R r= Fla) Hu gna t or a Zo b econ F(t) (x-(x—1)> 65)? Omeem: 5 He sa6yapre nepeHecT ace orseTs! 8 GnaHk oTBeTOS N° 1 Yactb2 Aja sanncn oTseroe k 3anaknam ati 4actu (24-27) ucnonbayitre GnaHK oTseToB Ne 2. SannumTe cHayana HoMep sanaHisn (24, 25 T.2.), a SaTeM nonHoe peweHne. Orserel sanuceisaiire 48Txo pas6op4nso. 24. Tpe6opanoch HanMcaTb mporpaMMy, KoTOpad pemlaeT HepaBeHCTBO (x ~ a)/(bx) > 0 ornocurensHo x y18 mo6sIxX HeHysepBIX uCen a Hb (0 #0,a #0), speqénaurx ¢ KnaBuaTyput. Bee uneza cuuTaiotes geiicT- suTexbubimn. [porpamMucr Toponusica m Hanvcan nporpamMy Henpa- BHIBHO. TiPOTPAMMA var a,b,x: real; HATIACKAJIE begin readln (a,b, x); if b>O then write ('x>',a," unm x <0") else if a > 0 then write("0 0 THEN PRINT "x>",a," uma x 0 THEN PRINT "O0) printf("x>$£ anu x<0", ads else if (a>0) print£("0 , rye — erpoxa, cocrosmas ue 6o- mee em 43 20 cumposon, — crpoKa, cocrosimas He Gomee 4em us 15 cumsomon, — rog o6yuenua (oT 1 0 12) 4 sarnapnaa 6yxsa (or «A» 70 «fl») Ges npoGena. u , a raxe pasqenenst ofHum mpoberom. IIpumep BxoqHoii erpo- KH: Visanos Merp 10B ‘Tpe6yeres narucath nporpammy Ha sauike Iackans nam Beiicux, Koro pas GyZer BBIBO_NTS Ha SKPAaH HHCbopMalMIO O Mapasenax (Fone oGy4e- Hus) ¢ HaHGoTBIIHM uHcTOM yseHHKoR. [porpamMa qOsKHA BRIBOAUTS Ha 9KpaH B Hepsoli eTpoKe KomMUeCTHO YUeHHKOR B MCKOMBIX Tapase- JAX, a BO BOO CTPoKe — B HlOpaKe BospacTaHHs HoMepa OTHX Mapas seneii tepes mpoGex, Hanpumep: 100 1711