CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 12:37:47 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=cb2d94e49241ad2ac43a51816f16ee52ce4ff81773d4c7eda238eb26da6e8db3a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22eMwrU__utPMAqXzXRZ7n7VY7jP70uj1i%22%3B%7D; HttpOnly; Path=/
cf-ray: 98ce69279c40a403-BLR
tp6_ej8 - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program tp6_ej8;
- type
- mat = array [1..10,1..10] of integer;
- vec = array [1..10] of integer;
- procedure cargarVector (var vector:vec; n:byte);
- var
- i:byte;
- begin
- for i:=1 to n do
- readln(vector[i]);
- end;
- function xRy (x,y:integer):boolean;
- begin
- if (x-y>=3) then
- xRy:=true
- else
- xRy:=false;
- end;
- procedure generarMatrizBooleana (var matriz:mat;vector:vec;n:byte);
- var
- i,j:byte;
- begin
- for i:=1 to n do
- begin
- for j:=1 to n do
- if xRy(vector[i],vector[j]) then
- matriz[i,j]:=1
- else
- matriz[i,j]:=0;
- end;
- end;
- procedure mostrarmatriz (matriz:mat;n:byte);
- var
- i,j:byte;
- begin
- for i:=1 to n do
- begin
- for j:=1 to n do
- write(' ',matriz[i,j],' ');
- writeln();
- end;
- end;
- function reflexiva (matriz:mat;n:byte):boolean;
- var
- i,j:byte;
- begin
- for i:=1 to n do
- begin
- for j:=1 to n do
- if (i=j) then
- begin
- if (matriz[i,j]=1) then
- reflexiva:=true
- else
- reflexiva:=false;
- end;
- end;
- end;
- function simetrica (matriz:mat;n:byte):boolean;
- var
- i,j:byte;
- flag:boolean;
- begin
- flag:=false;
- for i:=1 to n do
- begin
- for j:=1 to n do
- if (matriz[i,j]=matriz[j,i]) then
- flag:=true
- else
- flag:=false;
- end;
- end;
- simetrica:=flag;
- var
- n,m:byte;
- vectorNum:vec;
- matrizRel:mat;
- begin
- writeln('cantidad de nros: ');
- readln(n);
- cargarVector(vectorNum,n);
- writeln('xRy sií x-y>=3');
- generarMatrizBooleana(matrizRel,vectorNum,n);
- mostrarmatriz(matrizRel,n);
- if simetrica(matrizRel,n) then
- writeln('R es simetrica y reflexiva')
- else
- begin
- if (reflexiva(matrizRel,n)) then
- writeln('R es reflexiva pero no simetrica')
- else
- writeln('R no es reflexiva ni simetrica');
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐ Instant BTC Profit Method ✅ NEVER SEEN BEFO...
JavaScript | 1 sec ago | 0.24 KB
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ 6
JavaScript | 1 sec ago | 0.24 KB
-
⭐✅ MAKE $2000 INSTANTLY ✅ NEVER SEEN BEFORE ⭐...
JavaScript | 10 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ 3
JavaScript | 12 sec ago | 0.24 KB
-
⭐ Free Crypto Method ✅ NEVER SEEN BEFORE ⭐⭐⭐
JavaScript | 19 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 3
JavaScript | 23 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ✅ NEVER SEEN...
JavaScript | 28 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 37 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand