vj1282 佳佳的魔法照

Vj1282 佳佳的魔法照

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//±ÉÈ˵ķ½·¨ //Ä£Äâ //¸ø w[i] °´´Ó´óµ½Ð¡ÅÅÐò È»ºó¸øËüÃǼÓÉÏ e[(i-1) mod 10 + 1] //ÔÙÅÅ Êä³ö / //±ÉÈ˵ÄÎÊÌâ //×¢Òâÿһ¸ö±äÁ¿µÄÊý¾Ý·¶Î§ / const maxe=10; maxn=50000; var n,k:longint; e:array[0. .maxe] of integer; w,num:array[0. .maxn] of longint; procedure init; var i:longint; begin readln(n,k); for i:=1 to maxe do read(e[i]); for i:=1 to n do begin read(w[i]); num[i]:=i; end; end; procedure qs(l,r:longint); var i,j,m1,m2,t:longint; begin i:=l; j:=r; m1:=w[(i+j) >> 1]; m2:=num[(i+j) >> 1];
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Vj1282 佳佳的魔法照

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online