PDA

View Full Version : [Tin] Pascan và vấn đề thi HSG Tin học



thanhkhoeo
20-05-2010, 04:22 PM
thành rất muôn thi hsg tin học vì thế thành lập topic này

có vấn đề này thanh nghiz mãi khônbg ra


tìm kiếm nhị phân dẫy sô gồm n số (n rất lớn 100 chữ số):love:

xoxodetoan
21-05-2010, 10:28 PM
thành rất muôn thi hsg tin học vì thế thành lập topic này

có vấn đề này thanh nghiz mãi khônbg ra


tìm kiếm nhị phân dẫy sô gồm n số (n rất lớn 100 chữ số):love:
Tìm kiếm cái gì thế Thành?
Cái này học ở học kì 1 rồi mà.:amitabha:

thanhkhoeo
22-05-2010, 09:37 AM
lập trình pascal chứ không phải là giải thuật bạn ạk mình cần chuương trình viết = pascal

xoxodetoan
06-06-2010, 08:31 AM
Thành ơi dãy nhị phân có phải là dãy số 00000001 đúng không?
Tớ không hiểu là đề bài của cậu là muốn tìm cái gì ?
:sparkling:

thanhkhoeo
06-06-2010, 08:42 AM
đúng là dãy nhị phân nhưng tớ hỏi thuật toán tìm kiếm nhị phân cơ

đề bài là

cho 1 dẫy số gôm n số cho trước và 1 số x viết thuật toán tìm kiếm nhị phân xem x có thuộc n hay không

haidh
06-06-2010, 08:48 AM
Cây nhị phân tổng quát là một tập hợp hữu hạn các đỉnh được xác định đệ quy như sau:
- Một tập trống là một cây nhị phân.
- Giả sử T1 và T2 là hai cây nhị phân không cắt nhau và r là một đỉnh mới không thuộc T1, T2. Khi đó ta có thể thành lập một cây nhị phân mới T với gốc r có T1 là cây con bên trái, T2 là cây con bên phải của gốc.
Cây nhị phân có thể trống, mỗi đỉnh của nó luôn luôn có hai cây con là cây con bên trái và cây con bên phải. Mỗi đỉnh của cây nhị phân chỉ có nhiều nhất là hai đỉnh con: một đỉnh con bên trái (đó là gốc của cây con trái) và một đỉnh con bên phải (đó là gốc của cây con phải).



uses crt;
type nodePtr= ^node;
node= record
key: integer;
left,right: NodePtr
end;
var root,tk: nodePtr; x,chon,i,n: integer;
a: array[1..100] of integer; f: text;
procedure Chen(x: integer);
var p,q: nodePtr;
begin new(q); q^.key:=x; q^.left:=Nil; q^.right:=nil;
if root=NIL then root:=q else
begin p:=root;
while p<>NIL do
begin if x <>nil then p:=p^.left
else begin p^.left:=q; p:=nil end
end
else begin if x>p^.key then begin
if p^.right<>nil then p:=p^.right
else begin p^.right:= q; p:=nil end
end
else p:=nil;
end
end;
end;
end;
procedure TimKiem(x: integer; var p: nodePtr);
var found: boolean;
begin p:= root; found:= false;
while(p<>nil) and (not found) do
if p^.key=x then found:= true
else if x
end;
procedure InRong;
const max =50;
var truoc,cuoi,dem: integer; p,q: nodePtr;
h: array[1..max] of nodePtr;
begin h[1]:=root; truoc:=1; cuoi:=1; dem:=1;
while (dem>0) do
begin q:=h[truoc]; write(q^.key,’ : ‘); p:= q^.left;
if p<>nil then begin write(p^.key,’ – ‘); inc(cuoi);
h[cuoi]:=p; inc(dem);
end else write(‘NIL – ‘);
p:= q^.right;
if p<>nil then begin writeln(p^.key);
inc(cuoi); h[cuoi]:=P; inc(dem);
end else writeln(‘NIL’);
h[truoc]:=nil; inc(truoc); dec(dem);
end;
end;
procedure Xoa(var p: nodePtr);
var q,q1: nodePtr;
begin
if p^.right=NIL then begin q:=p; p:=p^.left end
else if p^.left=NIL then begin q:=p; p:=p^.right end
else begin q:= p^.left;
if q^.right=nil then begin p^.key:=q^.key;
p^.left:=q^.left
end
else begin
repeat q1:=q; q:=q^.right until q^.right=nil;
p^.key:=q^.key; q1^.right:= q^.left;
end
end;
dispose(q);
end;
procedure PreOrder(p: nodePtr);
begin if p<> nil then
begin writeln(p^.key); PreOrder(p^.left); PreOrder(p^.right) end;
end;
procedure InOrder(p: nodePtr);
begin if p<> nil then
begin InOrder(p^.left);writeln(p^.key); InOrder(p^.right) end;
end;
procedure PostOrder(p: nodePtr);
begin if p<> nil then
begin PostOrder(p^.left); PostOrder(p^.right); writeln(p^.key) end;
end;
begin root:=nil; clrscr;
repeat
writeln(’1.Chen 2.Xoa 3.TimKiem 4.InRong 5.PreOder ‘);
write(’6.InOrder 7.PostOrder 8.NhapTep 9.Exit. Chon:’);
readln(chon);
case chon of
1: begin write(‘Nhap khoa moi: ‘); readln(x); Chen(x);
end;
2: begin write(‘Nhap khoa can xoa: ‘); readln(x);
TimKiem(x,tk);
if tk<>nil then Xoa(tk)
else writeln(‘Khong tim thay gia tri khoa’);
end;
3: begin write(‘Nhap khoa can tim : ‘); readln(x);
TimKiem(x,tk);
if tk<>NIL then writeln(‘Da tim thay dinh co khoa : ‘,tk^.key)
else writeln(‘Khong tim thay dinh co khoa nay’);
end;
4: InRong;
5: begin writeln(‘Danh sach PreOrder: ‘); PreOrder(Root) end;
6: begin writeln(‘Danh sach InOrder: ‘); InOrder(Root) end;
7: begin writeln(‘Danh sach PostOrder: ‘); PostOrder(Root) end;
8: begin assign(f,’Cay.dat’); reset(f); readln(f,n);
for i:=1 to n do begin read(f,a[i]); Chen(a[i]) end;
close(f); write(‘Da nhap xong cay tu tep…’); readln;
end;
end
until chon=9;
end.



Giải thích: http://buithetam.wordpress.com/2009/11/20/cay-tim-kiem-nhi-phan/

xoxodetoan
06-06-2010, 08:50 AM
À tớ hiểu rồi! có phải ví dụ như:
cho trước 1 dãy số từ 1 đến 100 chẳng hạn
Sau đó cho x
Và tìm xem giá trị của x có nằm trong dãy không à?
Hay quá nhỉ !
Tớ muốn nhờ xem có ai chương trình tính tổng hình vuông của các cạnh mà mỗi ô lại là một hình vuông!
Ví dụ như tình tổng hình vuông của bàn cờ vua hay bàn cờ vây chẳng hạn!
Hoặc tình tổng những ô vuông có giá trị lơn hơn rất nhiều như 1tỉ ô chẳng hạn!
Sau đó xem tổng của chúng là chẵn hay lẽ. Nếu là lẽ thì có phải là số nguyên tố hay không!

haidh
06-06-2010, 08:52 AM
đúng là dãy nhị phân nhưng tớ hỏi thuật toán tìm kiếm nhị phân cơ

đề bài là

cho 1 dẫy số gôm n số cho trước và 1 số x viết thuật toán tìm kiếm nhị phân xem x có thuộc n hay không

Nếu là y/c này của chú thì không khó:

1.Sắp xếp dãy tăng dần , mục đích để chia dãy thành 2 nửa khoảng (khoảng giá trị bé và khoảng giá trị lớn)
2.Viết hàm đệ qui để xác định nửa khoảng mà số x thuộc vào.
3.Nếu x = giá trị biên của nửa khoảng mà ta đã chia -->dừng lại, kết luận x thuộc dãy, nếu không thì quay lại bước 2.

Pascal thì a ngu lắm, nên anh chỉ nói giải thuật được thôi. (Chú thông cảm vì anh là dân Chăn Nuôi Trồng Trọt)

xoxodetoan
06-06-2010, 09:02 AM
Nếu là y/c này của chú thì không khó:

1.Sắp xếp dãy tăng dần , mục đích để chia dãy thành 2 nửa khoảng (khoảng giá trị bé và khoảng giá trị lớn)
2.Viết hàm đệ qui để xác định nửa khoảng mà số x thuộc vào.
3.Nếu x = giá trị biên của nửa khoảng mà ta đã chia -->dừng lại, kết luận x thuộc dãy, nếu không thì quay lại bước 2.

Pascal thì a ngu lắm, nên anh chỉ nói giải thuật được thôi. (Chú thông cảm vì anh là dân Chăn Nuôi Trồng Trọt)

anh ơi giúp em ở câu hỏi trên với! Em thấy anh có vẻ giỏi trò này ghê!:knife:

thanhkhoeo
06-06-2010, 10:34 AM
À tớ hiểu rồi! có phải ví dụ như:
cho trước 1 dãy số từ 1 đến 100 chẳng hạn
Sau đó cho x
Và tìm xem giá trị của x có nằm trong dãy không à?
Hay quá nhỉ !
Tớ muốn nhờ xem có ai chương trình tính tổng hình vuông của các cạnh mà mỗi ô lại là một hình vuông!
Ví dụ như tình tổng hình vuông của bàn cờ vua hay bàn cờ vây chẳng hạn!
Hoặc tình tổng những ô vuông có giá trị lơn hơn rất nhiều như 1tỉ ô chẳng hạn!
Sau đó xem tổng của chúng là chẵn hay lẽ. Nếu là lẽ thì có phải là số nguyên tố hay không!

không hiểu đề bài kậu ạk hiểu chết liền . cho đề sâu hơn đê toàn ơi

thanhkhoeo
06-06-2010, 12:15 PM
àk cứu em với pascal của em nó bị sao ấy em viết xong chương trình em bấm f9 thì báo ổn nhưng bấm ctrl+f9 để chạy file thì báo lỗi số 200. cách sử lí

thanhkhoeo
27-10-2010, 05:51 PM
Ai có những thuật toán hay thì cho mình xem vs nhé


Thuật toán đơn giản xử lý một tình huống trên bàn cờ !

Các trò chơi đối kháng giữa hai người chúng ta thường biết là những trò chơi như cờ tướng, cờ vua, cờ caro…đã được hình thành từ lâu. Và những người chơi luôn cố gắng tìm mọi cách để mình giành được phần thắng. Và bạn có biết rằng có thể đoán trước người thắng thua, hay hoà ? Điều này có nghĩa là nếu một trò chơi cho trước vị trí ban đầu thì kết quả tốt nhất mà người chơi đầu tiên đạt được đã được biết từ trước (giả thiết cả hai người chơi đều chơi tối ưu). Vấn đề là các trò chơi thường quá phức tạp nên không có một ai có thể đảm bảo rằng mọi nước đi của mình là tối ưu. Do vậy cho đến nay, chỉ một số lượng nhỏ bài toán đó đã được giải quyết.
Có thể hiểu đơn giản các bài toán dạng này như dạng đồ thị :
Cho đồ thị có hướng G=(V,E) (Đồ thị G có tập đỉnh V, tập cạnh là E). Với mỗi đỉnh

Một trò chơi hai người được định nghĩa là một đồ thị có hướng G = (V, E) trong đó mỗi trạng thái chơi tương ứng với một đỉnh của đồ thị, hàm E(v) là qui tẵc chơi tức là E(v) chứa các đỉnh hay trạng thái chơi mà từ v có thể đi đến. Hai người luân phiên nhau đi , ở thế chơi u người chơi chỉ có thể đi sao cho nước v nhận được thoả mãn . Trò chơi kết thúc khi đến lượt đấu mà không thể đi tiếp được nữa. (Thông thường thì người không thể đi tiếp là người thua cuộc).
Và cách xử lý những bài dạng này cũng trở nên đơn giản hơn. Chúng ta cùng xét một ví dụ cụ thể như sau:
Bài toán: Hai người luân phiên nhau điều khiển một con tốt theo một số con cho trước. Một người có thể di chuyển con tốt từ vị trí u đến v nếu có một đường nối trực tiếp có hướng từ u đến v. Trò chơi kết thúc không thể tiếp tục di chuyển. Người không thể tiếp tục đi là người thua cuộc. Hỏi nếu cho trước vị trí ban đầu và danh sách các đường nối hỏi người đi trước thắng hay người đi sau thắng hay cả hai hoà? Giả sử rằng hai người này rất thông minh các bước đi của họ là tối ưu (tức cả hai người không bao giờ đi các nước không có lợi cho mình).
Input:
- Dòng đầu ghi số N là số vị trí con tốt có thể đừng, và số M là số đường đi (có hướng) mà con tốt có thể đi (1≤ N ≤ 200, 1 ≤ M ≤ N*(N-1)).
- Dòng thứ hai ghi u là trạng thái bắt đầu.
- M dòng tiếp theo mỗi dòng ghi hai số u, v mô tả một đường đi từ u đến v.
Output:
- Ghi một số duy nhất 1, 2, hoặc 0. 1 nghĩa là người 1 thắng, 2 là người hai thắng, 0 là hoà.
Nhận xét:
- Những vị trí không có đường ra thì chắc chắn sẽ thua.
- Những vị trí nào có một đường ra nối với vị trí chắc chắn thua thì chắc chắn thắng.
- Những vị trí nào tất đường ra nối với các vị trí chắc chắn thắng thì chắc chắn thua.
- Những vị trí nào mà trạng thái thắng thua không thể xác định thì là vị trí hoà.
- Bài toán có trạng thái hoà: VD: có các đường nối 1 → 2, 2 → 3, 3 → 1, 1 → 4, 4 → 5.Các vị trí 1,2,3 sẽ hòa, 5 thua, 4 thắng.
Thuật toán:
- Lúc đầu coi tất cả các vị trí v đều hoà gán giá trị đỉnh F[v] = 0. Tìm các vị trí không có đường ra thì gán lại F[v] = 2 (tức là nếu người chơi ở vị trí này sẽ thua).
- Khi thay trạng thái một vị trí từ hoà sang thắng hoặc thua thì kiểm tra các vị trí có đường đi đến nó: Những vị trí u nào có một đường ra nối với vị trí v chắc chắn thua (F[v] = 2) sẽ thì chắc chắn thắng (thay F = 1); Những vị trí u nào tất đường ra nối với các vị trí v (F[v] = 1) chắc chắn thắng thì chắc chắn thua (thay F = 2).
- Quá trình này ngừng khi không có sự chuyển trạng nào nữa.

Chương trình con mô tả thuật toán:
procedure gan_nhan (u: byte);
var td, v : byte;
begin
td := 0;
if t then td := 1 else // t là trạng thái người chơi ở vị trí chắc thắng
if (vị trí không có đường ra, hoặc chắc chắn thua) then td := 2;
F := td;
if td <> 0 then
for v := 1 to N do
if F[v] = 0 then
if C[v, u] then gan_nhan (td);
End;
procedure Main;
var u : Integer;
Begin
Fillchar (F, sizeof (F), 0);
for u := 1 to N do
if Khong_Co_Canh_Ra (u) then Gan_nhan(u);
end;

thanhkhoeo
22-11-2010, 08:25 PM
ai làm đc bài 4. 42 sách bài tập tin học 11 mình thưởng 1000 Dz

voimonster
23-11-2010, 02:23 PM
Cái này hình như trong sách nó có lời giải ở phần cuối mà ? c:big_smile:Néu dây tuột thì đó là cơ may đấy!c:big_smile: http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

thanhkhoeo
28-11-2010, 08:08 PM
Bài 2: Hoán vị đầu tầu
Xét một cơ cấu đường tầu vào kho để sửu chữa, với đường vào và đường ra cùng đi vào kho (giống stack). Giả sử đường vào có 4 đầu tầu 1, 2, 3, 4. Gọi V, R là phép đưa đầu tầu vào, ra khỏi kho. Nếu ta thực hiện một dãy VVRVVRRR thì thứ tự các đầu tầu trên đường ra sẽ là 2, 4, 3, 1. Như vậy ta có thể coi như hoán vị 2, 4, 3, 1 được tạo ra từ dãy VVRVVRRR.
Lập chương trình cho n đầu tầu và hoán vị tương ứng với n, xác định dãy sinh ra hoán vị đó nếu có, nếu không thông báo không tồn tại.


làm hộ với

voimonster
28-11-2010, 09:41 PM
Muốn làm hộ lắm ! Nhưng hông hiểu đề ? c:big_smile: http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

[NT]kut3
28-11-2010, 10:42 PM
Bài 2: Hoán vị đầu tầu
Xét một cơ cấu đường tầu vào kho để sửu chữa, với đường vào và đường ra cùng đi vào kho (giống stack). Giả sử đường vào có 4 đầu tầu 1, 2, 3, 4. Gọi V, R là phép đưa đầu tầu vào, ra khỏi kho. Nếu ta thực hiện một dãy VVRVVRRR thì thứ tự các đầu tầu trên đường ra sẽ là 2, 4, 3, 1. Như vậy ta có thể coi như hoán vị 2, 4, 3, 1 được tạo ra từ dãy VVRVVRRR.
Lập chương trình cho n đầu tầu và hoán vị tương ứng với n, xác định dãy sinh ra hoán vị đó nếu có, nếu không thông báo không tồn tại.

cái này trả bik nhưng nếu muốn làm thì lên hẳn cái web về IT + lập trình nhờ làm hộ nhiều thằng rảnh lắm.....

thanhkhoeo
30-11-2010, 06:25 PM
bài này dễ hơn mọi người làm thử xem sao nhé

Có n loại đồng xu, mỗi đồng có giá trị tương ứng là d1, d2, …dn. Muốn đổi một lượng tiền tương đương có giá trị là N xu ra tiền xu sao cho số đồng xu là ít nhất. Với giả thiết rằng, số đồng xu nhiều tuỳ ý.

voimonster
30-11-2010, 07:36 PM
bài này dễ hơn mọi người làm thử xem sao nhé

Có n loại đồng xu, mỗi đồng có giá trị tương ứng là d1, d2, …dn. Muốn đổi một lượng tiền tương đương có giá trị là N xu ra tiền xu sao cho số đồng xu là ít nhất. Với giả thiết rằng, số đồng xu nhiều tuỳ ý. http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

Bài này ta chỉ cần dùng lệnh DIV và MOD là đổi được hết ! c:big_smile:

thanhkhoeo
02-12-2010, 12:25 PM
dùng thuật toán gì ??? vấn đề là dùng ít xu nhất

voimonster
02-12-2010, 12:50 PM
dùng thuật toán gì ??? vấn đề là dùng ít xu nhất

có nhiều thuật toán trong đó sét giá trị tổng số tiền trước.
Rồi xét đến đồng tiền to nhất trước.
rồi lại sét tiền dư
Rồi xét tiền to nhất tương ứng với tiền dư.
Cứ như vậy là ra.http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

thanhkhoeo
03-12-2010, 06:13 AM
đây là thuật toán tham lam thì phảihttp://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

voimonster
03-12-2010, 12:51 PM
đây là thuật toán tham lam thì phải

? Thuật toán gì lạ thế ? c:adore: c:adore:http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

thanhkhoeo
11-12-2010, 08:25 PM
cậu Toàn có muốn làm nhiều bài không, nếu có thì vào trang http://vn.spoj.pl để làm bài, và vào trang http://vnoi.info để lấy bài làm, và đó cũng là diễn đàn luônhttp://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

voimonster
12-12-2010, 04:43 PM
cậu Toàn có muốn làm nhiều bài không, nếu có thì vào trang http://vn.spoj.pl để làm bài, và vào trang http://vnoi.info để lấy bài làm, và đó cũng là diễn đàn luôn

Chà chà. Trang web này được đấy. Hợp với Gu của mình. c:big_smile:http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

thanhkhoeo
12-12-2010, 09:07 PM
http://www.topcoder.com/news/category/alg/

pro vô cùng Thành đọc không hiểu luônhttp://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

voimonster
13-12-2010, 02:23 PM
http://www.topcoder.com/news/category/alg/

pro vô cùng Thành đọc không hiểu luôn

Đọc chả hiều gì hết ? Trang web gì đây ?c:adore:http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

voimonster
15-12-2010, 12:48 PM
Bài 2 kiểm tra học kì :
Không biết có đúng ko ?

Program Baitap2;
Uses Crt;
Var
Demchan,demle,demam,demduong,dem3:integer;
I,j,t,n:integer;
Mang:array [1..1000] of integer;
Begin
Clrscr;
Writeln(‘Nhap so nguyen N :’);
Readln(n);
For i:=1 to n do then
Begin
Writeln(‘Nhap so thu ‘,i,’ ‘);
Readln(mang[i]);
End;

Demam:=0;
For i:=1 to n do then
If (mang[i]<0) then demam:=demam+1;
Demduong:=n-demam;

Demchan:=0;
For i:=1 to n do then
If (mang[i] mod 2 =0) then demchan:=demchan+1;
Demle:=n-demchan;

Dem3:=0;
For i:=1 to n do
If (man[i]) mod 3 =0) then dem3:=dem3+1;

For j:=n downto 2 do
For i:=1 to j-1 do
If (mang[i]<mang[i+1] then
Begin
T:=mang[i];
Mang[i]:=mang[i+1];
Mang[i+1]:=t;
End;
Writeln(‘So cac phan tu chan la :’,demchan);
Writeln(‘So cac phan tu le la :’,demle);
Writeln(‘So cac phan tu duong la :’,demduong);
Writeln(‘So cac phan tu am la :’,demam);
Writeln(‘So cac phan tu chia het cho 3 la :’,dem3);
Writeln;
Writeln(‘Day so duoc sap xep la:’);
For i:=1 to n do write(mang[i]);
Readln;
End.http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

thanhkhoeo
15-12-2010, 01:39 PM
Bài 2 kiểm tra học kì :
Không biết có đúng ko ?

Program Baitap2;
Uses Crt;
Var
Demchan,demle,demam,demduong,dem3:integer;
I,j,t,n:integer;
Mang:array [1..1000] of integer;
Begin
Clrscr;
Writeln(‘Nhap so nguyen N :’);
Readln(n);
For i:=1 to n do then
Begin
Writeln(‘Nhap so thu ‘,i,’ ‘);
Readln(mang[i]);
End;

Demam:=0;
For i:=1 to n do then
If (mang[i]<0) then demam:=demam+1;
Demduong:=n-demam;{ duong là> 0 vậy = 0 thì sao


Demchan:=0;
For i:=1 to n do then
If (mang[i] mod 2 =0) then demchan:=demchan+1;
Demle:=n-demchan;

Dem3:=0;
For i:=1 to n do
If (man[i]) mod 3 =0) then dem3:=dem3+1;

For j:=n downto 2 do
For i:=1 to j-1 do
If (mang[i]<mang[i+1] then
Begin
T:=mang[i];
Mang[i]:=mang[i+1];
Mang[i+1]:=t;
End;
Writeln(‘So cac phan tu chan la :’,demchan);
Writeln(‘So cac phan tu le la :’,demle);
Writeln(‘So cac phan tu duong la :’,demduong);
Writeln(‘So cac phan tu am la :’,demam);
Writeln(‘So cac phan tu chia het cho 3 la :’,dem3);
Writeln;
Writeln(‘Day so duoc sap xep la:’);
For i:=1 to n do write(mang[i]);
Readln;
End.

cái thể loạo này mà Toàn làm vớ vẩn quáhttp://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

voimonster
15-12-2010, 02:18 PM
cái thể loạo này mà Toàn làm vớ vẩn quá

Ta chỉ cần loại số âm thì số còn lại là số dương !
Không lẻ số 0 ko phải là số dương à ? c:adore:http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

atlantic_fly
15-12-2010, 05:02 PM
Tin thì anh không biết nhưng mà nói về toán thì câu trên em viết sai rồi !

voimonster
15-12-2010, 07:54 PM
[QUOTE=atlantic_fly;186106]Tin thì anh không biết nhưng mà nói về toán thì câu trên em viết sai rồi ![/QUOT>

? Ai viết sai. Ủa mình cứ tưởng số 0 là số dương chứ. c:big_smile:http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

thanhkhoeo
16-12-2010, 07:31 AM
cậu xem lại cách sắp xếp mảng đi nhé

theo thành thì thế này cơ

for i:= 1 to n-1 do
for j:=2 to n do
if a[i] > a[j] then
begin
t:=a[i];
a[i]:=a[j];
a[j]:= t;
end;http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

voimonster
16-12-2010, 05:42 PM
cậu xem lại cách sắp xếp mảng đi nhé

theo thành thì thế này cơ

for i:= 1 to n-1 do
for j:=2 to n do
if a[i] > a[j] then
begin
t:=a[i];
a[i]:=a[j];
a[j]:= t;
end;

Giống nhau cả có khác gì đâu.
Đều phải khai hai biến i,j và một biến t để đổi. c:big_smile:
Không tin thì viết vào Turbo thử xem !http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

thanhkhoeo
16-12-2010, 06:30 PM
: Lập chuơng trinh nhập hai số nguyê n ,m vµ mảng A(mxn)
- Viết thủ tục nhập
- Viết thủ tục in ra mảng dạng ma trận

- Xây dựng thủ tục sắp xếp theo thứ tự tăng dần từ trên xuống d­ưới. từ trái sang phải.

uses crt;
var a:array[1..100,1..100] of integer;
i, j ,n ,m, k ,l : integer;
procedure nhap;
beginhttp://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

clrscr;
Write(' nhap so hang ');
readln(n);
write(' nhap so cot ');
readln(m);
for i := 1 to n do
for j := 1 to m do
begin
{ write(' nhap a[',i,',',j,' ]= '); "{}
a[i,j]:= random (1000) ;
end;
end;
procedure inmatran;
begin
for i:= 1 to n do
begin
for j:= 1 to m do write(a[i,j]:4);
writeln;
end;
end;
procedure hoandoi(var x,y:integer);
var t:integer;
begin
t:=y;
y:=x;
x:=t;
end;
procedure sapxeptang(var x,y:integer);
begin
if x>y then
hoandoi(x,y);
end;
function nguyento(x:integer):boolean;
var i:integer;
begin
nguyento:=true;
for i:= 2 to x do if x mod i = 0 then nguyento:=false;
end;

Begin
randomize;
nhap;
inmatran;
{ write(' nhap 2 hang can doi vi tri');
readln(k,l);
for i:= 1 to m do
hoandoi(a[k,i],a[l,i]);
inmatran; }
{ for l:=1 to n*m do }
begin
for i:= 1 to n do
for j:=1 to m do
for k:= 2 to j do
sapxeptang(a[i,j],a[i,k]);
for i := 1 to n -1 do
sapxeptang(a[m,i],a[1,i+1]);
for i:= 1 to m do
for j:= 2 to n do
for k:= 1 to j do
sapxeptang(a[k,i],a[j,i]);

end;writeln;
inmatran;
readln;
end.

sửa hộ thành cái đi c:big_smile:

voimonster
16-12-2010, 08:15 PM
: Lập chuơng trinh nhập hai số nguyê n ,m vµ mảng A(mxn)
- Viết thủ tục nhập
- Viết thủ tục in ra mảng dạng ma trận

- Xây dựng thủ tục sắp xếp theo thứ tự tăng dần từ trên xuống d­ưới. từ trái sang phải.

uses crt;
var a:array[1..100,1..100] of integer;
i, j ,n ,m, k ,l : integer;
procedure nhap;
begin
clrscr;
Write(' nhap so hang ');
readln(n);
write(' nhap so cot ');
readln(m);
for i := 1 to n do
for j := 1 to m do
begin
{ write(' nhap a[',i,',',j,' ]= '); "{}
a[i,j]:= random (1000) ;
end;
end;
procedure inmatran;
begin
for i:= 1 to n do
begin
for j:= 1 to m do write(a[i,j]:4);
writeln;
end;
end;
procedure hoandoi(var x,y:integer);
var t:integer;
begin
t:=y;
y:=x;
x:=t;
end;
procedure sapxeptang(var x,y:integer);
begin
if x>y then
hoandoi(x,y);
end;
function nguyento(x:integer):boolean;
var i:integer;
begin
nguyento:=true;
for i:= 2 to x do if x mod i = 0 then nguyento:=false;
end;

Begin
randomize;
nhap;
inmatran;
{ write(' nhap 2 hang can doi vi tri');
readln(k,l);
for i:= 1 to m do
hoandoi(a[k,i],a[l,i]);
inmatran; }
{ for l:=1 to n*m do }
begin
for i:= 1 to n do
for j:=1 to m do
for k:= 2 to j do
sapxeptang(a[i,j],a[i,k]);
for i := 1 to n -1 do
sapxeptang(a[m,i],a[1,i+1]);
for i:= 1 to m do
for j:= 2 to n do
for k:= 1 to j do
sapxeptang(a[k,i],a[j,i]);

end;writeln;
inmatran;
readln;
end.

sửa hộ thành cái đi c:big_smile:

Sữa gì chứ. Cái này đúng hết rồi. c:big_smile:http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

thanhkhoeo
16-12-2010, 08:23 PM
hix hix chạy thử mà không đc không biết sai ở đâuhttp://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

thanhkhoeo
17-12-2010, 09:47 AM
uses crt;
var a:array[1..100,1..100] of integer;
x,i, j ,n ,m, k ,l : integer;
procedure nhap;
begin
Write(' nhap so hang ');
readln(n);
write(' nhap so cot ');
readln(m);http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

for i := 1 to n do
for j := 1 to m do
begin
write(' nhap a[',i,',',j,' ]= ');

readln(a[i,j]);
{ a[i,j]:=random(10); {PO}
end;
end;
procedure inmatran;
begin
for i:= 1 to n do
begin
for j:= 1 to m do write(a[i,j]:4);
writeln;
end;
end;
procedure hoandoi(var x,y:integer);
var t:integer;
begin
t:=y;
y:=x;
x:=t;
end;
procedure sapxeptang(var x,y:integer);
begin
if x>y then
hoandoi(x,y);
end;
function nguyento(x:integer):boolean;
var i:integer;
begin
nguyento:=true;
if (x=0) or (x=1) then nguyento:=false;
for i:= 2 to x-1 do if x mod i = 0 then nguyento:=false;
end;
function duongcheop(nl:integer):integer;

begin
x:=0;
for i:=1 to nl do
x:=x+a[i,nl+1-i];
duongcheop:=x;
end;
function duongcheoc(nl:integer):integer;
begin
x:=0;
for i:=1 to nl do
x:=x+a[i,i];
duongcheoc:=x
end;
Begin clrscr;
{ randomize; }
nhap;
inmatran;
write(' nhap 2 hang can doi vi tri');
readln(k,l);
for i:= 1 to m do
hoandoi(a[k,i],a[l,i]);
inmatran;
writeln;
for i:= 1 to m do
for j:= 2 to n do
for k:= 1 to j do
sapxeptang(a[k,i],a[j,i]);
for i:=1 to n do
for j:=2 to m do
for k:=1 to j do
sapxeptang(a[i,k],a[i,j]);
inmatran;
readln;

{ for i:= 1 to n do
for j:= 1 to m -1 do
for k:= 2 to m do
begin
sapxeptang(a[i,j],a[i,k]);
if a[m,i]>a[1,i+1] then hoandoi(a[m,i],a[1,i+1]);

end;

}
for i := 1 to n do
for j := 1 to m do
if nguyento(a[i,j]) = true then writeln(a[i,j], 'la nguyen to tropng mang');
readln;

if m=n then write('tong duong cheo chinh ',duongcheoc(n),' duong cheo phu ' , duongcheop(n));
readln;
end.

ĐÂY LÀ Đáp án chính xác đề thầy sy cho hôm chủ nhật

thanhkhoeo
02-01-2011, 07:29 PM
Bài 2/1999 - Tổ chức tham quan

Trong đợt tổ chức đi tham quan danh lam thắng cảnh của thành phố Hồ Chí Minh, Ban tổ chức hội thi Tin học trẻ tổ chức cho N đoàn ( đánh từ số 1 đến N) mỗi đoàn đi thăm quan một địa điểm khác nhau. Đoàn thứ i đi thăm địa điểm ở cách Khách sạn Hoàng Đế di km (i=1,2,...., N). Hội thi có M xe taxi đánh số từ 1 đến M (MN) để phục vụ việc đưa các đoàn đi thăm quan. Xe thứ j có mức tiêu thụ xăng là vj đơn vị thể tích/km.
Yêu cầu: Hãy chọn N xe để phục vụ việc đưa các đoàn đi thăm quan, mỗi xe chỉ phục vụ một đoàn, sao cho tổng chi phí xăng cần sử dụng là ít nhất.Dữ lihttp://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/
ệu: File văn bản P2.INP:
- Dòng đầu tiên chứa hai số nguyên dương N, M (NM200);
- Dòng thứ hai chứa các số nguyên dương d1, d2, ..., dN;
- Dòng thứ ba chứa các số nguyên dương v1, v2, ..., vM.
- Các số trên cùng một dòng được ghi khác nhau bởi dấu trắng.
Kết quả: Ghi ra file văn bản P2.OUT:
- Dòng đầu tiên chứa tổng lượng xăng dầu cần dùng cho việc đưa các đoàn đi thăm quan (không tính lượt về);
- Dòng thứ i trong số N dòng tiếp theo ghi chỉ số xe phục vụ đoàn i (i=1, 2, ..., N).

thanhkhoeo
08-01-2011, 12:36 PM
bài 1

N-mino là hình thu được từ N hình vuông 11 ghép lại (cạnh kề cạnh). Hai n-mino được gọi là đồng nhất nếu chúng có thể đặt chồng khít lên nhau.
Bạn hãy lập chương trình tính và vẽ ra tất cả các N-mino trên màn hình. Số n nhập từ bàn phím.
Ví dụ: Với N=3 chỉ có hai loại N-mino sau đây:

http://i970.photobucket.com/albums/ae181/thanhkhoeo/t1.jpg
3-mino thẳng 3-mino hình thước thợ


Chú ý: Gọi Mn là số các n-mino khác nhau thì ta có M1=1, M2=1, M3=2, M4=5, M5=12, M6=35,...

bài 2:Mạng tế bào có dạng một lưới ô vuông hình chữ nhật. Tại mỗi nhịp thời gian: mỗi ô của lưới chứa tín hiệu là 0 hoặc 1 và có thể truyền tín hiệu trong nó cho một số ô kề cạnh theo một qui luật cho trước. Ô ở góc trên bên trái có thể nhận tín hiệu từ bên ngoài đưa vào. Sau nhịp thời gian đó, tín hiệu ở một ô sẽ là 0 nếu tất cả các tín hiệu truyền đến nó là 0, còn trong trường hợp ngược lại tín hiệu trong nó sẽ là 1. Một ô không nhận được tín hiệu nào từ các ô kề cạnh với nó sẽ giữ nguyên tín hiệu đang có trong nó. Riêng đối với ô trên trái, sau khi truyền tín hiệu chứa trong nó đi, nếu có tín hiệu vào thì ô trên trái sẽ chỉ nhận tín hiệu này, còn nếu không có tín hiệu nào thì ô trên trái cũng hoạt động giống như các ô khác. ở trạng thái đầu tín hiệu trong tất cả các ô là 0.
Yêu cầu: Cho trước số nhịp thời gian T và dãy tín hiệu vào S là một dãy gồm T ký hiệu S1, ..., ST, trong đó Si là 0 hoặc 1 thể hiện có tín hiệu vào, ngược lại Si là X thể hiện không có tín hiệu vào tại nhịp thời gian thứ i (1<= i<=T), hãy xác định trạng thái của lưới sau nhịp thời gian thứ T.
Dữ liệu: vào từ file văn bản P3.INP:
- Dòng đầu tiên chứa 3 số nguyên M, N, T theo thứ tự là số dòng, số cột của lưới và số nhịp thời gian (1<M, N <= 200; T <= 100);
- Dòng thứ hai chứa xâu tín hiệu vào S;
- M dòng tiếp theo mô tả qui luật truyền tin. Dòng thứ i trong số M dòng này chứa N số ai1, ai2, ..., aiN, trong đó giá trị của aij sẽ là 1, 2, 3, 4, 5, 6, 7, 8 tương ứng lần lượt nếu ô (i, j) phải truyền tin cho ô kề cạnh bên trái, bên phải, bên trên, bên dưới, bên trên và bên dưới, bên trái và bên phải, bên trên và bên trái, bên dưới và bên phải (xem hình vẽ); còn nếu ô (i, j) không phải truyền tín hiệu thì aij = 0.
http://i970.photobucket.com/albums/ae181/thanhkhoeo/so.jpg
Kết quả: Ghi ra file văn bản P3.OUT gồm M dòng, mỗi dòng là một xâu gồm N ký tự 0 hoặc 1 mô tả trạng thái của lưới sau nhịp thời gian thứ T.

thanhkhoeo
12-01-2011, 09:21 PM
Bài 1 - Trò chơi Tích - Tắc vuông
(Dành cho học sinh THCS và THPT)
Trên một lưới kẻ ô vuông có 2 người chơi như sau: người thứ nhất mỗi lần chơi sẽ đánh dấu x vào 1 ô trống. Người thứ hai được đánh dấu 0 vào 1 ô trống. Người thứ nhất muốn đạt được mục đích là đánh được 4 dấu x tạo thành 4 đỉnh của 1 hình vuông. Người thứ hai có nhiệm vụ ngăn cản mục đích đó của người thứ nhất. http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

Lập chương trình tìm thuật toán tối ưu cho người thứ nhất (người thứ nhất có thể luôn thắng).
Chú ý: Lưới ô vuông được coi là vô¬ hạn về cả hai phía.


Bài 2 - Đoạn thẳng và hình chữ nhật
(Dành cho học sinh THPT)
Hãy viết một chương trình xác định xem một đoạn thẳng có cắt hình chữ nhật hay không?
Ví dụ:
Cho tọa độ điểm bắt đầu và điểm kết thúc của đường thẳng: (4,9) và (11,2);
Và tọa độ đỉnh trái trên và đỉnh phải dưới của hình chữ nhật: (1,5) và (7,1);

Đoạn thẳng được gọi là cắt hình chữ nhật nếu đoạn thẳng và hình chữ nhật có ít nhất một điểm chung.
Chú ý: mặc dù tất cả dữ liệu vào đều là số nguyên, nhưng tọa độ của các giao điểm tính ra chưa chắc là số nguyên.
Input
Dữ liệu vào trong file Input.Inp kiểm tra N trường hợp (N <= 1000). Dòng đầu tiên của file dữ liệu vào là số N. Mỗi dòng tiếp theo chứa một trường hợp kiểm tra theo quy cách sau:
xstart ystart xend yend xleft ytop xright yboottm
trong đó: (xstart, ystart) là điểm bắt đầu và (xend, yend) là điểm kết thúc của đoạn thẳng. Và (xleft, ytop) là đỉnh trái trên, (xright, ybottom) là đỉnh phải dưới của hình chữ nhật. 8 số này được cách nhau bởi một dấu cách.
Output
Với mỗi một trường hợp kiểm tra trong file Input.txt, dữ liệu ra trong file Output.out phải đưa ra một dòng gồm hoặc là chữ cái "T" nếu đoạn thẳng cắt hình chữ nhật, hoặc là "F" nếu đoạn thẳng không cắt hình chữ nhật.
Ví dụ
Input.Inp
1
4 9 11 2 1 5 7 1
Output.out
F

xoxodetoan
13-01-2011, 09:09 PM
Bài 1 : Xâu kí tự đơn điệu
Là sâu gồm chữ cái thường và chữ cái hoa trong đó không có chữ cái nào trùng hoặc không phải là chữ cái trong bảng tiếng anh. Lập CT nhập xâu và sử lí thành xâu đơn điệu
Bài 2 :Bàn cờ vua...
Đếm số quân cờ lớn nhất đặt vào bàn cờ tính theo đường thẳng bất kì .

thanhkhoeo
13-01-2011, 09:53 PM
bài 2 :
program dt;
http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/http://photobucket.com/images/scared%20of%20santa/

uses crt;

const inp='inp.txt'; out='out.txt';

var a: array [1..100,1..100] of byte;
i,j, maxxx :byte; n:integer;
fi,fo:text;
{===================================}
procedure demngang(x,y:byte; var d:byte);
begin
d:=0;
while a[x,y] = 1 do
begin
d:=d+1;
y:=y+1;
end;
end;
{+_+_____________________+}

procedure demdoc(x,y:byte; var d:byte);

begin
d:=0;
while a[x,y] = 1 do
begin
d:=d+1;
x:=x+1;
end;
end;
{+++++++++++++++++++++++++++++++++++++}
procedure demcheochinh(x,y:byte; var d:byte);
begin
d:=0;
while a[x,y] = 1 do
begin
d:=d+1;
x:=x+1;
y:=y+1;
end;
end;
{++++++++++++++++++++++++++++++++++++++++++++++}
function max(a,b:byte):byte;
begin
if a<b then max:=b else max:=a;
end;
{+++++++++++++++++++++++++++++++++++++++++++++++++ ++}
procedure demcheophu(x,y:byte; var d:byte);

begin
d:=0;
if a[x,y] = 1 then
while (a[x,y] = 1) and (x<>0) do
begin
d:=d+1;
x:=x-1;
y:=y+1;
end;
end;
procedure xuli;
var dcc,dcp,dn,dd: array [1..250] of byte;
ddm,dnm,dcpm, dccm, k:byte;
begin

k:=1;
for i:= 1 to n do
begin
for j:= 1 to n do
begin
demngang(i,j,dn[k]);
{ write(dn[k]); }
k:=k+1;
end;
writeln;
end;
k:=1;
for i:= 1 to n do
begin
for j:= 1 to n do
begin
demdoc(i,j,dd[k]);
{ write(dd[k]); }
k:=k+1;
end;
writeln;
end;
k:=1;
for i:= 1 to n do
begin
for j:= 1 to n do
begin

demcheochinh(i,j,dcc[k]);
{ write(dcc[k]);{P{}
k:=k+1;
end;
writeln;
end;
k:=1;
for i:= 1 to n do
begin
for j:= 1 to n do
begin
demcheophu(i,j,dcp[k]);
{ write(dcp[k]); {}
k:=k+1;
end;
writeln;
end;

ddm:=0;
dccm:=0;
dnm:=0;
dcpm:=0;
for i:=1 to n*n do
begin
if ddm<dd[i] then ddm:=dd[i];
if dccm<dcc[i] then dccm:=dcc[i];
if dcpm<dcp[i] then dcpm:=dcp[i];
if dnm<dn[i] then dnm:=dn[i];

end;
maxxx:=max(max(max (ddm,dnm),dccm),dcpm);
writeln;
{write(maxxx:2,ddm:2,dccm:2,dcpm:2,dnm:2); }
readln;
end;

{______________________+++++++}

procedure nhap;
begin
assign(fi,inp);
reset(fi);

read(fi,n);

for i:=1 to n do
for j:=1 to n do
read(fi,a[i,j]) ;


close(fi);
{ clrscr;
write(' nhap n ') ;
readln(n);
write ('nhep ma tran');
for i:=1 to n do
for j:=1 to n do
begin
Write('nhap a[',i,',',j,']=');
readln(a[i,j]) ;
end;

for i:=1 to n do
begin
for j:=1 to n do
begin
write(a[i,j]);
end;
writeln;
end;
readln; }
end;
{++++++++++++++++++++++++++++++++++++++++++_}
procedure xuat;

begin
assign (fo,out);
rewrite(fo);
write(fo, maxxx);
close(fo);
end;
begin
nhap;
xuli;
xuat;
end.

mọi nguơif xem hộ xem saio o đâu không né

thanhkhoeo
16-01-2011, 08:08 PM
bài 1

program saudondieu;

type st=string; cthuong='a'..'z'; choa='A'..'Z';

const input='inp.txt'; out='out.txt';

var fi,fo:text;
b, a:array[1..40] of st ;
procedure nhap;
var i:byte;
begin
assign(fi,input);
reset(fi);
for i:= 1 to 40 do
read(fi,a[i]);
close(fi);
end;
function saudon(sauvao:st): st;
var i,j:byte; t:st; ct:cthuong; ch:choa ;
k:array[1..256]of byte ;
begin
t:='';
for i:=1 to length(sauvao) do
if (ord(sauvao[i])>=65) and (ord(sauvao[i])<=90) or ( (ord(sauvao[i])>=97)and(ord(sauvao[i])<=122 ) )
then t:=t+sauvao[i];
j:=1;
for i:=1 to length(t) do
if t[i] = t[i+1] then
begin
k[j]:=i;
j:=j+1;
end;
for i:=j downto 1 do
delete(t,k[i],1);
saudon:=t;
end;
procedure xoa_cuoi(a:st; var b:st);
var t:byte;
begin
t:=length(a);
if a[t]=b[1] then delete(b,1,1);
end;
procedure xuli;
var i:byte;
begin
for i:= 1 to 40 do
b[i]:=saudon(a[i]);
for i:= 1 to 39 do
xoa_cuoi(b[i],b[i+1]);
end;
procedure xuat;
var i:byte;
begin
assign(fo,out);
rewrite(fo);
for i:=1 to 40 do
write(fo,b[i]);
close(fo);
end;
begin
nhap;
xuli;
xuat;
end.

thanhkhoeo
17-01-2011, 08:43 PM
mọi người làm thử xem
Bài 1

Trong đợt tổ chức đi tham quan danh lam thắng cảnh của thành phố Hồ Chí Minh, Ban tổ chức hội thi Tin học trẻ tổ chức cho N đoàn ( đánh từ số 1 đến N) mỗi đoàn đi thăm quan một địa điểm khác nhau. Đoàn thứ i đi thăm địa điểm ở cách Khách sạn Hoàng Đế di km (i=1,2,...., N). Hội thi có M xe taxi đánh số từ 1 đến M (MN) để phục vụ việc đưa các đoàn đi thăm quan. Xe thứ j có mức tiêu thụ xăng là vj đơn vị thể tích/km.
Yêu cầu: Hãy chọn N xe để phục vụ việc đưa các đoàn đi thăm quan, mỗi xe chỉ phục vụ một đoàn, sao cho tổng chi phí xăng cần sử dụng là ít nhất.
Dữ liệu: File văn bản P2.INP:
- Dòng đầu tiên chứa hai số nguyên dương N, M (NM200);
- Dòng thứ hai chứa các số nguyên dương d1, d2, ..., dN;
- Dòng thứ ba chứa các số nguyên dương v1, v2, ..., vM.
- Các số trên cùng một dòng được ghi khác nhau bởi dấu trắng.
Kết quả: Ghi ra file văn bản P2.OUT:
- Dòng đầu tiên chứa tổng lượng xăng dầu cần dùng cho việc đưa các đoàn đi thăm quan (không tính lượt về);
- Dòng thứ i trong số N dòng tiếp theo ghi chỉ số xe phục vụ đoàn i (i=1, 2, ..., N).

thanhkhoeo
28-01-2011, 02:46 PM
bài này nfay chị hoacuc oi

thanhkhoeo
01-04-2011, 05:16 PM
xin thông báo

Đội tuyển tin năm nay ra quân kết quả như sau :

Cao Văn Tùng 11A3 :16 điểm giải nhì

Đỗ Ngọc Thắng 11A8 : 15 điểm giải 3

Nguyễn Tiến Thành 11A6 :13 điểm giải 3

thanhkhoeo
12-05-2011, 07:06 PM
Moij người lâfm thử cái này xem




ĐỀ THI CHÍNH THỨC
Môn Tin học lớp 10
Ngày thi: 23/4/2011
Thời gian làm bài: 180 phút.
(không kể thời gian giao đề)

Chữ ký giám thị 1:
...............................
Chữ ký giám thị 2:
...............................
(Đề thi này có 03 trang)
Bài 1 ( 6 điểm) : Chu kì của xâu Tên chương trình : CYC.PAS
Một xâu P được gọi là tiền tố của xâu A nếu tồn tại xâu B sao cho xâu PB (ghép B vào sau P) bằng xâu A. Một tiền tố P của A được gọi là tiền tố thực sự nếu P khác rỗng và P khác A.
Xâu Q được gọi là xâu chu kì của xâu A nếu Q là một tiền tố thực sự của A và A là tiền tố của xâu QQ. Chẳng hạn, abab và ababab là hai xâu chu kì của xâu abababa. Chu kì cực đại của A là xâu chu kì dài nhất của A ( nếu A không có xâu chu kỳ thì coi như độ dài chu kỳ cực đai = 0 ).
Cho một xâu S chỉ gồm các chữ cái in thường (‘a’..‘z’), hãy tính tổng độ dài chu kì cực đại của tất cả các tiền tố của S.
Dữ liệu vào từ tệp CYC.INP
• Dòng 1: số nguyên N (độ dài xâu S , 1≤N≤ 250)
• Dòng 2: xâu S
Kết quả ra tệp CYC.OUT ghi số nguyên kết quả
Ví dụ :
cyc.inp cyc.out
8
babababa 24
Giải thích ví dụ
Tiền tố Chu kì cực đại Độ dài
‘b’ ‘’ 0
‘ba’ ‘’ 0
‘bab’ ‘ba’ 2
‘baba’ ‘ba’ 2
‘babab’ ‘baba’ 4
‘bababa’ ‘baba’ 4
‘bababab’ ‘bababa’ 6
'babababa’ ‘bababa’ 6
Tổng 24

Bài 2 (7 điểm ) : Trả tiền mua hàng Tên chương trình : MONEY.PAS
Một người đi mua hàng với giá trị của hàng là M đồng .Trong túi người đó có N loại tiền với các mệnh giá T1, T2, . . . TN, mỗi loại có một số lượng tương ứng S1, S2, . . . SN. Hỏi người đó có thể trả đúng số tiền mua hàng được không (không tính khả năng trả thừa tiền rồi người bán hàng trả lại ..), nếu có thể hãy đưa ra cách trả giúp cho người đó. (Biết M, N, Ti, Si nguyên dương; M ≤ 10000 ; N≤10 ; Si ≤ 10 ; Ti ≤10000 ; Ti > Ti+1 )
Dữ liệu vào từ tệp MONEY.INP
- Dòng 1: chứa số N và M
- Dòng 2: chứa N số Ti
- Dòng 3: chứa N số Si.
Kết quả ra tệp MONEY.OUT
- Dòng 1 ghi tổng số tờ phải trả trong trường hợp có cách trả tiền , nếu không thì ghi 101
- Trường hợp có cách trả thì dòng 2 ghi N số với ai là số tờ tiền phải trả tương ứng với loại tiền có mệnh giá Ti , nếu có nhiều cách trả với tổng số tờ ít nhất như nhau thì ghi ra dãy có thứ tự từ điển lớn nhất ( các số ghi cách nhau một dấu cách ).
Ví dụ 1:
MONEY.INP
5 91
13 9 6 3 1
4 10 4 6 5
MONEY.OUT
9
4 4 0 1 0
( ở đây còn cách trả 9 tờ nữa là
4 3 2 0 0 nhưng có thứ tự từ điển
nhỏ hơn …)
Ví dụ 2:
MONEY.INP
5 100
60 9 5 3 1
4 2 2 3 2
MONEY.OUT
101



Bài 3 (7 điểm): Tập số hữu tỷ Tên chương trình : CANTOR.PAS
Georg Cantor là nhà toán học nổi tiếng và một trong những chứng minh quan trọng của ông là việc chỉ ra rằng lực lượng của tập số hữu tỷ đúng bằng lực lượng tập số tự nhiên. Cơ sở của việc chứng minh đó là sơ đồ sau:
1/1
2/1 1/2
3/1 2/2 1/3
4/1 3/2 2/3 1/4
5/1 4/2 3/3 2/4 1/5
6/1 5/2 4/3 3/4 2/5 1/6
...
Trong sơ đồ trên, mỗi số hữu tỷ dương tương ứng với một số nguyên dương , số đầu tiên là 1/1, số thứ 2 là 1/2, số thứ 3 là 2/1, số thứ 4 là 3/1, số thứ 5 là 2/2, số thứ 6 là 1/3 , số thứ 7 là 1/4 , … ( đếm theo đường zíc zắc )
Yêu cầu: Cho một số nguyên dương , hãy tìm phân số có số thứ tự tương ứng với nó theo sơ đồ trên.
Dữ liệu vào từ tệp CANTOR.INP
Gồm 1 dòng ghi số nguyên dương n ( n≤1017 )
Kết quả ra tệp CANTOR.OUT
Gồm 1 dòng ghi phân số có thứ tự n dưới dạng a/b.
Ví dụ :

CANTOR.INP
3
7
9
11
14
1000000 1009/406
CANTOR.OUR
2/1
1/4
3/2
5/1
2/4

thanhkhoeo
19-05-2011, 05:54 PM
TỔNG QUAN VỀ CÁC BÀI THI

----------------Tên file chương trình----Dữ liệu vào-----Dữ liệu ra
Bài 1-----------HUUNGHI.PAS---------------------------Màn hình
Bài 2-----------XOACHUSO.PAS-------------------------Màn hình
Bài 3-----------XOAYOC.PAS------------Bàn phím------Màn hình
Bài 4-----------AMSTRONG.PAS-------------------------Màn hình
Bài 5-----------SODOCDAC.PAS---------Bàn phím------Màn hình





Bài 1: Cặp số ''hữu nghị'' (2 điểm)

------Hai số nguyên dương được gọi là ''hữu nghị'' nếu số này bằng tổng các ước thực sự của số kia và ngược lại (ước thực sự của một số nguyên dương là ước nhỏ hơn số đó, ví dụ số 6 có các ước thực sự là 1,2,3). Hãy tìm các cặp số ''hữu nghị'' từ 100 đến 1000.
------Kết quả: Đưa ra màn hình, mỗi cặp số tìm được ghi trên một dòng, số bé viết trước, các số cách nhau tối thiểu một dấu cách.

Bài 2: Xoá chữ số (2 điểm)

------Tìm tất cả các số có 4 chữ số thoả mãn tính chất: Nếu xoá đi 1 chữ số nào đó thì số đó giảm đi 9 lần.
------Kết quả: Đưa ra màn hình, gồm nhiều dòng, mỗi dòng 2 số: số thứ nhất là số có 4 chữ số thoả mãn tính chất trên, số thứ hai là số có 3 chữ số có được từ số thứ nhất sau khi đã xoá đi 1 chữ số để được số bằng 1/9 số thứ nhất, các số cách nhau tối thiểu một dấu cách. Các kết quả ghi không được trùng nhau
------Dòng cuối ghi số các số tìm được

Bài 3: Xoáy ốc (2 điểm)

------Lập chương trình nhập các số tự nhiên liên tiếp 1,2,3,4,...,N*N vào bảng A[N*N] theo chiều xoáy ốc ngược chiều kim đồng hồ.
------Sau đó in ra bảng A[N*N] ra màn hình. Ví dụ N=4 cấn nhập vào và in ra kết quả như sau:
---1--12-11-10
---2--13-16--9
---3--14-15--8
---4---5--6--7

---Dữ liệu vào: Nhập từ bàn phím số nguyên dương N<=20.
---Kết quả: Đưa ra màn hình bảng A[N*N] gồm các số tự nhiên sắp xếp theo yêu cầu trên.


Bài 4: Số Amstrong (2.5 điểm)

-----Số tự nhiên N có k chữ số, được gọi là số Amstrong nếu N bằng tổng các luỹ thừa bậc k của các số của nó.
-----Ví dụ:

-----Hãy tìm tất cả các số Amstrong có k chữ số, với 3<=k<=6
-----Kết quả: Đưa ra màn hình mỗi số tìm được viết trên một dòng.
-----Dòng cuối cùng ghi số các số tìm được.

Bài 5: Số độc đắc (1.5 điểm)


----- Viết các số tự nhiên từ 1 đến 2009 theo một vòng tròn cùng chiều quay kim đồng hồ. Cũng theo chiều đó, bắt đầu từ số 1, cứ đếm từ 1 đến số thứ 612 thì xoá số đó đi. Lại bắt đầu từ số còn lại đứng ngay sau số vừa bị xoá, lặp lại quá trình đến khi còn 1 số thì dừng lại.

-----a) Hỏi số còn lại là số nào?
-----b) Muốn số còn lại là số thứ L (0<L<2010) thì ban đầu cần xuất phát từ số nào?
-------- Dữ liệu vào: Nhập từ bàn phím số nguyên dương L (0<L<2010)
---------Kết quả: Đưa ra màn hình theo qui cách: dòng thứ nhất là kết quả cho câu hỏi a); dòng thứ hai là kết quả cho câu hỏi b).

thanhkhoeo
22-05-2011, 08:25 PM
Bài 1:Số đối xứng

Một số được gọi là đối xứng khi các chữ số của nó đối xứng qua tâm.Ví dụ:9,77,919,98289. Cho một số nguyên dương x (x co số chữ số <=100),hãy tìm số đối xứng lớn hơn và gần x nhất.

Dữ liệu vào: Từ tệp văn bản SODX.INP gồm 1 dòng ghi số x.

Kết quả :Ghi ra tệp văn bản SODX.OUT gồm 1 dòng ghi số đối xứng lớn hơn và gần x nhất.

Bài 2:Chiếm chỗ

Cho một lưới ô vuông gồm m dòng,n côt. Có k người chơi trò trơi chiếm chỗ như sau: Ban đầu mỗi người được chọn một ô ( bằng cách ghi số thứ tự của mình vào ô đó ), không được nhận ô người khác chọn. Sau đó mỗi lượt người chơi theo thứ tự từ nhỏ đến lớn, chọn tiếp các ô chưa có ai chọn kề cạnh với một trong các ô mình đã chọn từ các lượt trước đó. Quá trình được lặp lại cho đến khi tất cả các ô đều được chọn.

Yêu cầu : Xác định số các ô mỗi người đã chọn được.

Dữ liệu vào: Từ tệp văn bản CHIEMCHO.INP

- Dòng đầu là 3 số nguyên dương m,n,k.

- k dòng tiếp theo, mỗi dòng chỉ vị trí của dòng, cột của ô mà người chơi thư i chọn ban đầu.

Trong đó :m,n - chỉ số dòng, cột của lưới ô vuông (m,n<=500)

k- chỉ số người chơi (2<=k<=5)

Kết quả: Ghi ra tệp văn bản CHIEMCHO.OUT một dòng gồm k số, số thứ i là số ô mà người thứ i chọn được. Các số cách nhau ít nhất một khoảng trắng.

thanhkhoeo
23-05-2011, 03:50 PM
Đề thi học sinh giỏi Tin học THPT tỉnh Nam Định 2011
Bài 1: (Tên file chương trình THI.PAS, tên file dữ liệu vào:THI.INP, tên file kết quả:THI.OUT)
Hội thi học sinh thanh lịch (6 ĐIỂM)
Trong một hội thi học sinh thanh lịch có n thí sinh tham gia, mỗi thí sinh biểu diễn ó m giám khảo trong hội đồng giám khảo cho điểm (điểm là một số nguyên không âm nhỏ hơn 100). Sau khi các giám khảo cho điểm xong người ta lấy trung bình cộng điểm của các giám khảo làm kết quả thi của thí sinh đó.
Yêu cầu: Hãy tính kết quả của các thí sinh(điểm làm tròn đến 2 chữ số thập phân).
Dữ liệu: Vào từ file văn bản THI.INP
- Dòng thứ nhất chứa hai số nguyên dương m,n (m<=100,n<=1000)
- Dòng thứ i trong dòng tiếp theo mỗi dòng chứa m số là điểm của các giám khảo cho thí sinh thứ i
Các số trên cùng một dòng được ghi cách nhau ít nhất một dấu cách.
Kết quả: Ghi ra file văn bản THI.OUT: gồm n dòng, dòng thứ i chứa một số duy nhất là điểm trung bình của thí sinh thứ i.
Ví dụ:
THI.INP |THI.OUT
5 4 | 1.00
1 1 1 1 1 | 2.00
2 2 2 2 2 |3.00
1 2 3 4 5 |3.20
1 2 3 4 6
Bài 2: Đếm ước (7 điểm)
Cho n số nguyên dương a1, a2,...,an (a<=ai<=2^31 , i=1->n, 1<=50 )
Với mỗi số đã cho hãy xác định số lượng ước số của nó.
Ví dụ với n=2, a1=4, a2=12, số lượng ước số của 4 là là 3(1,2,4), số lượng ước số của 12 là 6 (1,2,3,4,5,12)
Dữ liệu: Vào từ file văn bản DEMUOC.INP:
- Dòng đầu tiên chứa số nguyên n
- Dòng thứ i trong n dòng sau chứa số nguyên ai
Kết quả: Đưa ra file văn bản DEMUOC.OUT n số nguyên trên n dòng, dòng thứ i chứa số lượng ước số của ai.
Ví dụ:
DEMUOC.INP | DEMUOC.OUT
2 | 3
4 | 6
12|
Bải 3: Các đồng xu(7 điểm)
Steve ngồi bên cửa sổ rất lâu quan sát lũ quạ. Chúng là loài chim thông minh, rất thích các vật lóng lánh và hay tha những thứ này về tổ. Hôm nay, không kiếm được ở đau, chúng tha về các đồng xu. Có tất cả n con quạ, con quạ thứ i đã mang về ai đồng xu. Nhìn vào vị trí của tổ trên cành Steve hiểu rằng nếu có bi đồng xu thì tổ của quạ thứ i sẽ bị lật, rơi xuống đất và Steve sẽ nhặt được hết đồng xu trong tổ. Steve đang có trong túi m đồng xu và có tại ném đâu trúng đó. Bây giờ chình là lúc cái tài lẻ này phát huy tác dụng.
Yêu cầu: Hãy xác định số tiền tối đa mà Steve sẽ có được.
Dữ liệu: Vào từ file văn bản COINS.INP
- Dòng đầu tiên chứa 2 số nguyên n và m (1<=n<=1000, 0<=m<=1000)
- Dòng thứ 2 chứa n số a1, a2, ..., an (0<=ai<=1000, i=1->n)
- Dòng thứ 3 chứa n số b1, b2,..., bn (ai<=bi<=1000, i=1->n)
Kết quả: Đưa ra file văn bản COINS.OUT một số nguyên-số tiền tối đa mà Steve sẽ có.
Ví dụ:
COINS.INP | COINS.OUT
2 3 | 6
1 2 |
4 6 |

Hết

thanhkhoeo
06-09-2011, 09:42 PM
Cho các số sau: 1, 2, 3, 5, 7
Chỉ dùng phép toán cộng hãy dùng dãy trên để tạo ra số: 43, 52.
Ví dụ để tạo số 130 bạn có thể làm như sau: 123 + 7 = 130.