jsj_第十届全国青少年信息学_计算机_奥林匹克分区联赛初赛_第1页
jsj_第十届全国青少年信息学_计算机_奥林匹克分区联赛初赛_第2页
jsj_第十届全国青少年信息学_计算机_奥林匹克分区联赛初赛_第3页
jsj_第十届全国青少年信息学_计算机_奥林匹克分区联赛初赛_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Pascal . 10 1.5 15 . 1. I = a, b, c, d, e, f, g A = a, b, c B = b, d, e C = e, f, g( A ? B ) ( C B )A. a, b, c, d 2. B. a, b, d, e C. b, d, e D. b, c, d, e E. d, f, g3 a 5 b 2 c “abc” A. 40320 B. 39600 C. 840 D. 780 E. 60 “ ” 1 2 3 A. 1, 2, 3, 4, 5 B. 1, 2, 4, 5, 7C. 1, 3, 5, 4, 6 D. 1, 3, 5, 6, 7 E

2、. 1, 3, 6, 5, 7 N N A. N B. 2 * N C. 2 * N 1 D. 2 * N + 1 E. 2 1 T 1 2 4 3 5 7 6 4 2 1 5 7 3 6 A. 4 2 5 7 6 3 1 B. 4 2 7 5 6 3 1 C. 4 2 7 5 3 6 1 D. 4 7 2 3 5 6 1 E. 4 5 2 6 3 7 1 100.625 A. 1001100.101 B. 1100100.101 C. 1100100.011 3. 4. 5. 6. D. 1001100.11 E. 1001100.01 7.A. CPUB. C. D. E. A. WWW

3、World Wide Web B. URL Uniform Resource Locator C. HTTP Hypertext Transfer ProtocolD. FTP Fast Transfer Protocol E. TCP Transfer Control Protocol A. B. C. D. E.8. 9.10.1A. B.C.D.E.10 1.5 15 11. ·A.B. C. EDVAC D. E. 12. 64 A. Intel Itanium B. Intel Pentium III C. AMD Athlon64 D. AMD Opteron E. IB

4、M Power 5 13. (2004)10 + (32)16 A. (2036)16 B. (2054)10 C. (4006)8 D. (100000000110)2 E. (2036)10 14. A. MySQL B. SQL Server C. Oracle D. Outlook15. A. B. C. D. 16.A. Microsoft Word B. Windows XP C. Foxmail E. FoxproE. UD.E. Red Hat Linux17. A. CPUB. CPU CPU 1 CPU C. CPU D. E. 18. A. B. C. D. E. 19.

5、 A. C+ B. Object Pascal C. C D. Smalltalk E. Java 20.2C0C1C2 C0, C1C3 C1, C2C4 C3C5 C3, C7C6 C0C7 C6A. C0, C1, C2, C3, C4, C5, C6, C7 B. C0, C1, C2, C3, C4, C6, C7, C5 D. C0, C1, C6, C7, C5, C2, C3, C4 C. C0, C1, C6, C7, C2, C3, C4, C5 E. C0, C1, C2, C3, C6, C7, C5, C4 2 5 10 1. 75 20 55 5 700 a, b,

6、 c, d, e, f, g a b c d e f g “a b”2.4 8 32 1 program progam1; var u: array 0.3 of integer; a, b, c, x, y, z: integer; begin read(u0, u1, u2, u3); a := u0 + u1 + u2 + u3 - 5; b := u0 * (u1 - u2 div u3 + 8); c := u0 * u1 div u2 * u3; x := (a + b + 2) * 3 - u(c + 3) mod 4; y := (c * 100 - 13) div a div

7、 (ub mod 3 * 5); if(x+y) mod 2 = 0) then z := (a + b + c + x + y) div 2; z := (a + b + c x - y) * 2; writeln(x + y - z); end. 2 5 7 42 program program2; var i, number, ndata, sum: integer; data: array1.100 of integer; procedure solve(s, sign, n: integer); 3 var i: integer; begin for i := s to ndata

8、do begin inc(sum, sign * (number div (n * datai); solve(i + 1, -sign, n * datai); end; end; begin read(number ,ndata); sum := 0; for i := 1 to ndata do read(datai); solve(1, 1, 1);writeln(sum); end. 1000 3 5 13 11 3 program program3; var c: array1.3 of string200; s: array1.10 of integer; m, n, i: in

9、teger; procedure numara; var cod: boolean; i, j, nr: integer; begin for j := 1 to n do begin nr := 0; cod := true; for i := 1 to m do if ci, j = '1' then begin if not cod then begin cod := true; inc(snr); nr := 0; end end else begin if cod then begin nr := 1; cod := false; end else inc(nr);

10、end; if not cod then inc(snr); end; end; begin readln(m, n); 4 for i := 1 to m do readln(ci); numara; for i := 1 to m do if si <> 0 then write(i, ' ', si, ' '); end. 3 10 1110000111 1100001111 10000000114 program program4; const u: array0.2 of integer = (1, -3, 2); v: array0.1

11、of integer = (-2, 3); var i, n, sum: integer; function g(n: integer): integer; var i, sum: integer; begin sum := 0; for i := 1 to n do inc(sum, ui mod 3 * i); g := sum; end; begin sum := 0; read(n); for i := 1 to n do inc(sum, vi mod 2 * g(i); writeln(sum); end. 103( 5 2 6 3 28 ) 1 Joseph : Joseph n

12、 n 1 n 1 m m n=6 m=5 5 4 6 2 3 1 k k 1 k k+1 2k m k5: k 0 < k <14 : k m : 4 : 30 program program1; var i, k, m, start: longint; find: boolean; function check(remain: integer): boolean; var result: integer; begin result:=( ) mod remain; if( )then begin start := result; check := true; end else c

13、heck := false; end; begin find := false; read(k); m := k; while ( ) do begin find := true; start := 0; for i := 0 to k-1 do if( not check( ) then begin find := false; break; end; inc(m); end; writeln( ); end. 2 : 11 2 361234: n×n 0 255 0 255 n 0<n<100 n nn 4: “YES” “NO” : 3 112 122 112 :

14、YES program program2; const d: array0.7 of integer = (1, 0, -1, 0, 0, 1, var orig, n, i, j, ns: integer; a: array0.101, 0.101 of integer; bun: boolean; procedure plimba(x, y: integer); var i, x1, y1: integer; 7);begin ax, y := -ax, y; if (abs(ax - 1, y) <> orig) and ( <> ax - 1, y) or (a

15、bs(ax, y - 1) <> orig) then inc(ns); if (abs(ax + 1, y) <> orig) and (ax + 1, y - 1 <> ax + 1,y) or (abs(ax, y - 1) <> orig) then inc(ns); if (abs(ax, y - 1) <> orig) and ( <> ax, y - 1) or (abs(ax - 1, y) <> orig) then inc(ns); if (abs(ax, y + 1) <> o

16、rig) and (ax - 1, y + 1 <> ax,y + 1) or (abs(ax - 1, y) <> orig) then inc(ns); for i := 0 to 3 do begin x1 := x + d2 * i;y1:=y+ ; if (x1 >=1) and (x1 <= n) and (y1 >= 1) and (y1 <= n) and ( ) then plimba(x1, y1); end; end; begin bun := true; read(n); for i := 0 to n+1 do for

17、j := 0 to n+1 do ai, j := 0; a0, 0 := -1; an + 1, 0 := -1; a0, n + 1 := -1; an + 1, n + 1 := -1; for i := 1 to n do for j := 1 to n do read(ai, j); for i := 1 to n do for j := 1 to n do if ai, j > -1 then begin ns := 0; ; plimba(i, j); if ns mod 2 = 1 then bun := false; end; if bun then writeln(&

18、#39;YES'); if not bun then writeln('NO'); end.8=11 12 13 14 15 16 17 18 19 20 1 2 3 4 5 6 7 8 9 10 1) 2) 3) 4)(1) (2)=. . 10 1.5 15 . 1 2 4 5 6 7 8 9 1010 1.5 15 11 12 13 14 15 16 17 18 19 202 5 10 1. 2. : . 4 8 32: 1 : : (2) :9= = . 4 8 32: 3 : 4 :. ( 5 2 6 3 28 ) Pascal 1. 1 2 3 4 5 2. 1 2 3 4 5 610. 10 1.5 15 . . 1 2 4 5 6 7 8 9 A D E C B B C D C 10 A10 1.5 15 11 12 13 14 15 16 17 18 19 ACDE BC BCD D AC BE ADE

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论