8 Pages « < 2 3 4 5 6 > »  
Reply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> Zanimljivi Zadaci

Anchi
post Feb 9 2007, 08:23 PM
Post #61





Group: Članovi
Joined: 27-July 06
Member No.: 76
Status: Učenik MGa
Škola/Razred: MG



Resenje je 7. Nema sanse 8 nikako da se postavi smile.gif

This post has been edited by Anchi: Feb 9 2007, 10:19 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
^_NiN0_^
post Feb 9 2007, 08:42 PM
Post #62


Moderator
Group Icon

Group: Moderatori
Joined: 29-January 06
Member No.: 4
Status: Učenik MGa



Nisam racunao da dama napada i po dijagonali! XD.gif I ja mislim da je 7, tj mogu i da dokazem sleep.gif (mozda :s)


--------------------
Yo!hambin,
Yo!hambina, Yo!hambin
Yo-yo, yo-yo, yo
Yo!hambin,
Yo!hambina, Yo!hambiiina
(Mala matura deca kokaina®
Velika matura deca Yo!hambina)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Puzzler
post Feb 9 2007, 09:43 PM
Post #63





Group: Članovi
Joined: 2-July 06
Member No.: 74
Status: Van MGa
Škola/Razred: MG/IIb (proud of it)



Samo isprobavajte...
Rešenje stiže u nedelju. happy.gif


--------------------
user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
pyost
post Feb 9 2007, 09:49 PM
Post #64


Deus Ex Makina
Group Icon

Group: Administratori
Joined: 25-January 06
From: Beograd
Member No.: 2
Status: Bivši učenik MGa
Škola/Razred: RAF



7 moze sigurno, to sam i nacrtao..


0 0 0 1 0 0 0 0
0 0 0 0 0 1 0 0
0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 0 0 0 0 1 0
0 0 0 0 1 0 0 0
1 0 0 0 0 0 0 0


Mozda sam pogresio.. Nevazno, sada proveravam da li moze za 8 biggrin.gif


--------------------
Baby, it's a violent world.

Registrovani korisnik Linuxa broj 460770 [Ubuntu 7.10]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Puzzler
post Feb 9 2007, 09:59 PM
Post #65





Group: Članovi
Joined: 2-July 06
Member No.: 74
Status: Van MGa
Škola/Razred: MG/IIb (proud of it)



QUOTE(pyost @ Feb 9 2007, 09:49 PM)
7 moze sigurno, to sam i nacrtao..


0 0 0 1 0 0 0 0
0 0 0 0 0 1 0 0
0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 0 0 0 0 1 0
0 0 0 0 1 0 0 0
1 0 0 0 0 0 0 0


Mozda sam pogresio.. Nevazno, sada proveravam da li moze za 8 biggrin.gif
*




Jako dobro!!!
Ali, razmisliću da li sad da odam rešenje, ili ne. sleep.gif


--------------------
user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
pyost
post Feb 9 2007, 10:17 PM
Post #66


Deus Ex Makina
Group Icon

Group: Administratori
Joined: 25-January 06
From: Beograd
Member No.: 2
Status: Bivši učenik MGa
Škola/Razred: RAF



Moze 8!!!!!!! Idem sada da veceram, dobijate resenja za 10 minuta smile.gif


--------------------
Baby, it's a violent world.

Registrovani korisnik Linuxa broj 460770 [Ubuntu 7.10]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Anchi
post Feb 9 2007, 10:20 PM
Post #67





Group: Članovi
Joined: 27-July 06
Member No.: 76
Status: Učenik MGa
Škola/Razred: MG



Ma ja i dalje mislim da 8 ne moze smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Puzzler
post Feb 9 2007, 10:26 PM
Post #68





Group: Članovi
Joined: 2-July 06
Member No.: 74
Status: Van MGa
Škola/Razred: MG/IIb (proud of it)



Evo!!!

Ko pogleda sliku, samo će mu se kaz'ti... smile.gif


user posted image


--------------------
user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
pyost
post Feb 9 2007, 10:33 PM
Post #69


Deus Ex Makina
Group Icon

Group: Administratori
Joined: 25-January 06
From: Beograd
Member No.: 2
Status: Bivši učenik MGa
Škola/Razred: RAF



Ja sam to resio na drugaciji, malo neefikasniji nacin laugh.gif

CODE
program queen;

type
   tabla = array [1..8,1..8] of integer;

var
  a:tabla;
  i,j,p:integer;
  skup: set of 1..8;


function moze(i,j:integer;t:tabla):boolean;
var
  x,y:integer;
  help:boolean;
begin
    help:=true;

    for x:=1 to 8 do
        for y:=1 to 8 do
            if ((x=i) or (y=j) or (x-y=i-j) or (x+y=i+j)) and (t[x,y]=1) and not ((x=i) and (y=j))
                  then help:=false;

    moze:=help;
end;

function proveri:boolean;
var
  i,j:integer;
  help:boolean;
begin
    help:=true;

    for i:=1 to 8 do
        for j:= 1 to 8 do
            if a[i,j]=1 then if not moze(i,j,a) then help:=false;

    proveri:=help;
end;


begin

    randomize;

    p:=1;

    while p<100000 do
    begin

         for i:=1 to 8 do
             for j:=1 to 8 do
                a[i,j]:=0;

         skup:=[];

         for i:=1 to 8 do
         begin

              repeat
                    j:=random(8)+1;
              until not (j in skup);

              skup:=skup+[j];

              a[i,j]:=1;

         end;

         if proveri then
         begin
                 for i:=1 to 8 do
                 begin
                      for j:=1 to 8 do
                          write(a[i,j],' ');
                      writeln;
                 end;
                 writeln;
         end;

         p:=p+1;

    end;

    writeln('Kraj');
end.


Ovaj program proverava za 100000 random kobinacija, a neke se pri ispisu i ponavljaju.


--------------------
Baby, it's a violent world.

Registrovani korisnik Linuxa broj 460770 [Ubuntu 7.10]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Puzzler
post Feb 9 2007, 10:35 PM
Post #70





Group: Članovi
Joined: 2-July 06
Member No.: 74
Status: Van MGa
Škola/Razred: MG/IIb (proud of it)



surprise.gif surprise.gif surprise.gif

Ja sam koristio samo papir i olovku XD.gif


--------------------
user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
pyost
post Feb 9 2007, 10:36 PM
Post #71


Deus Ex Makina
Group Icon

Group: Administratori
Joined: 25-January 06
From: Beograd
Member No.: 2
Status: Bivši učenik MGa
Škola/Razred: RAF



Mi ipak zivimo u 21. veku rolleyes.gif


--------------------
Baby, it's a violent world.

Registrovani korisnik Linuxa broj 460770 [Ubuntu 7.10]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Puzzler
post Feb 9 2007, 10:44 PM
Post #72





Group: Članovi
Joined: 2-July 06
Member No.: 74
Status: Van MGa
Škola/Razred: MG/IIb (proud of it)



Dobro, ovo baš nije iz analize, i mnogo je lako, ali evo...

CODE
Bašta je pravougaonog oblika. U Bašti se nalazi kamen. (joj, kako glupa postavka XD.gif) Ako je kamen od jednog temena bašte udaljen 4m, od drugog 13m, od trećeg 20m, koliko je udaljen od četvrtog?


--------------------
user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
pyost
post Feb 9 2007, 11:00 PM
Post #73


Deus Ex Makina
Group Icon

Group: Administratori
Joined: 25-January 06
From: Beograd
Member No.: 2
Status: Bivši učenik MGa
Škola/Razred: RAF



16 smile.gif


--------------------
Baby, it's a violent world.

Registrovani korisnik Linuxa broj 460770 [Ubuntu 7.10]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
^_NiN0_^
post Feb 10 2007, 12:48 AM
Post #74


Moderator
Group Icon

Group: Moderatori
Joined: 29-January 06
Member No.: 4
Status: Učenik MGa



QUOTE(pyost @ Feb 9 2007, 10:33 PM)
Ja sam to resio na drugaciji, malo neefikasniji nacin laugh.gif

CODE
program queen;

type
   tabla = array [1..8,1..8] of integer;

var
  a:tabla;
  i,j,p:integer;
  skup: set of 1..8;
function moze(i,j:integer;t:tabla):boolean;
var
  x,y:integer;
  help:boolean;
begin
    help:=true;

    for x:=1 to 8 do
        for y:=1 to 8 do
            if ((x=i) or (y=j) or (x-y=i-j) or (x+y=i+j)) and (t[x,y]=1) and not ((x=i) and (y=j))
                  then help:=false;

    moze:=help;
end;

function proveri:boolean;
var
  i,j:integer;
  help:boolean;
begin
    help:=true;

    for i:=1 to 8 do
        for j:= 1 to 8 do
            if a[i,j]=1 then if not moze(i,j,a) then help:=false;

    proveri:=help;
end;
begin

    randomize;

    p:=1;

    while p<100000 do
    begin

         for i:=1 to 8 do
             for j:=1 to 8 do
                a[i,j]:=0;

         skup:=[];

         for i:=1 to 8 do
         begin

              repeat
                    j:=random(8)+1;
              until not (j in skup);

              skup:=skup+[j];

              a[i,j]:=1;

         end;

         if proveri then
         begin
                 for i:=1 to 8 do
                 begin
                      for j:=1 to 8 do
                          write(a[i,j],' ');
                      writeln;
                 end;
                 writeln;
         end;

         p:=p+1;

    end;

    writeln('Kraj');
end.


Ovaj program proverava za 100000 random kobinacija, a neke se pri ispisu i ponavljaju.
*


Ja nisam ukapirao da ste vi postavili zadatak - tj Puzzler. XD.gif I ja sam hteo da resim programerski, mada mrzelo me , a i zaboravio sam cool.gif


--------------------
Yo!hambin,
Yo!hambina, Yo!hambin
Yo-yo, yo-yo, yo
Yo!hambin,
Yo!hambina, Yo!hambiiina
(Mala matura deca kokaina®
Velika matura deca Yo!hambina)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jeele
post Feb 10 2007, 11:49 AM
Post #75





Group: Članovi
Joined: 6-September 06
From: van sebe
Member No.: 89
Status: Van MGa
Ime i prezime: Jelena Dimov
Škola/Razred: MG, IVe



0 0 0 1 0 0 0 0
0 0 0 0 0 1 0 0
0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 1
0 1 0 0 0 0 0 0
0 0 0 0 0 0 1 0
0 0 0 0 1 0 0 0
1 0 0 0 0 0 0 0

eto tu moze osma...


--------------------
pritajeni tiganj, skriveno lonce za kafu

deviantART
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jeele
post Feb 10 2007, 11:53 AM
Post #76





Group: Članovi
Joined: 6-September 06
From: van sebe
Member No.: 89
Status: Van MGa
Ime i prezime: Jelena Dimov
Škola/Razred: MG, IVe



dobro sad sam procitala i da je reseno...ali eto ovo je druga kombinacija...

drugi zadatak...16...


--------------------
pritajeni tiganj, skriveno lonce za kafu

deviantART
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
pyost
post Feb 10 2007, 11:54 AM
Post #77


Deus Ex Makina
Group Icon

Group: Administratori
Joined: 25-January 06
From: Beograd
Member No.: 2
Status: Bivši učenik MGa
Škola/Razred: RAF



I to je reseno, al' nema veze, poklapaju nam se resenja laugh.gif

QUOTE(jeele @ Feb 10 2007, 11:49 AM)
0 0 0 1 0 0 0 0
0 0 0 0 0 1 0 0
0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 1
0 1 0 0 0 0 0 0
0 0 0 0 0 0 1 0
0 0 0 0 1 0 0 0
1 0 0 0 0 0 0 0

eto tu moze osma...
*



Jel' si sigurna smile.gif


--------------------
Baby, it's a violent world.

Registrovani korisnik Linuxa broj 460770 [Ubuntu 7.10]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
jeele
post Feb 10 2007, 12:38 PM
Post #78





Group: Članovi
Joined: 6-September 06
From: van sebe
Member No.: 89
Status: Van MGa
Ime i prezime: Jelena Dimov
Škola/Razred: MG, IVe



blush.gif............
pa dooobro....malo sna je u mennbi...


--------------------
pritajeni tiganj, skriveno lonce za kafu

deviantART
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Eli0t
post Feb 11 2007, 10:42 PM
Post #79


Voodoo People
Group Icon

Group: Administratori
Joined: 25-January 06
Member No.: 1
Status: Bivši učenik MGa



QUOTE
Ovaj program proverava za 100000 random kobinacija, a neke se pri ispisu i ponavljaju.


Haha, i ti bese imas 5 iz informatike? XD.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
pyost
post Feb 11 2007, 10:47 PM
Post #80


Deus Ex Makina
Group Icon

Group: Administratori
Joined: 25-January 06
From: Beograd
Member No.: 2
Status: Bivši učenik MGa
Škola/Razred: RAF



Imam, jel si ljubomoran mozda laugh.gif


--------------------
Baby, it's a violent world.

Registrovani korisnik Linuxa broj 460770 [Ubuntu 7.10]
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

8 Pages « < 2 3 4 5 6 > » 
Reply to this topicTopic OptionsStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members: