-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e2d1da9
Showing
196 changed files
with
56,725 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
plik = open('Dane_PR/liczby.txt').readlines() | ||
|
||
ile_liczb = 0 | ||
for wiersz in plik: | ||
wiersz = wiersz.strip() | ||
ilosc_jedynek = 0 | ||
ilosc_zer = 0 | ||
for litera in wiersz: | ||
if litera == '0': | ||
ilosc_zer += 1 | ||
if litera == '1': | ||
ilosc_jedynek += 1 | ||
if ilosc_zer > ilosc_jedynek: | ||
ile_liczb += 1 | ||
|
||
print('Zadanie 4.1') | ||
print(ile_liczb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
plik = open('Dane_PR/liczby.txt').readlines() | ||
|
||
podzielne_8 = 0 | ||
podzielne_2 = 0 | ||
for wiersz in plik: | ||
wiersz = wiersz.strip() | ||
base_10 = int(wiersz, 2) | ||
if base_10 % 2 == 0: | ||
podzielne_2 += 1 | ||
if base_10 % 8 == 0: | ||
podzielne_8 += 1 | ||
|
||
print('Zadanie 4.2') | ||
print('Podzielne przez 2:', podzielne_2) | ||
print('Podzielne przez 8:', podzielne_8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
plik = open('Dane_PR/liczby.txt').readlines() | ||
|
||
base_10 = [] | ||
for wiersz in plik: | ||
wiersz = wiersz.strip() | ||
base_10.append(int(wiersz, 2)) | ||
|
||
najwieksza = max(base_10) | ||
najmniejsza = min(base_10) | ||
najwieksza_pozycja = base_10.index(najwieksza) + 1 | ||
najmniejsza_pozycja = base_10.index(najmniejsza) + 1 | ||
print('Zadanie 4.3') | ||
print('Numer wiersza najmniejszej liczby:', najmniejsza_pozycja) | ||
print('Numer wiersza największej liczby:', najwieksza_pozycja) | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
Id_kierowcy;Nazwisko;Imie;Kraj | ||
z1;Pizzonia;Antonio;Brazylia | ||
z2;Sutil;Adrian;Niemcy | ||
z3;Wurz;Alexander;Austria | ||
z4;Senna;Bruno;Brazylia | ||
z5;Albers;Christijan;Holandia | ||
z6;da Matta;Cristiano;Brazylia | ||
z7;Klien;Christian;Austria | ||
z8;Coulthard;David;Szkocja | ||
z9;Ricciardo;Daniel;Australia | ||
z10;Irvine;Eddie;Irlandia | ||
z11;Alonso;Fernando;Hiszpania | ||
z12;Massa;Felipe;Brazylia | ||
z13;Fisichella;Giancarlo;Wlochy | ||
z14;Frentzen;Heinz-Harald;Niemcy | ||
z15;Kovalainen;Heikki;Finlandia | ||
z16;Alesi;Jean;Francja | ||
z17;Alguersuari;Jaime;Hiszpania | ||
z18;Button;Jenson;Wielka Brytania | ||
z19;Montoya;Juan Pablo;Kolumbia | ||
z20;Trulli;Jarno;Wlochy | ||
z21;Vergne;Jean-Eric;Francja | ||
z22;Verstappen;Jos;Holandia | ||
z23;Villeneuve;Jacques;Kanada | ||
z24;Wilson;Justin;Wielka Brytania | ||
z25;Kobayashi;Kamui;Japonia | ||
z26;Raikkonen;Kimi;Finlandia | ||
z27;Hamilton;Lewis;Wielka Brytania | ||
z28;Gene;Marc;Hiszpania | ||
z29;Hakkinen;Mika;Finlandia | ||
z30;Salo;Mika;Finlandia | ||
z31;Schumacher;Michael;Niemcy | ||
z32;Webber;Mark;Australia | ||
z33;Heidfeld;Nick;Niemcy | ||
z34;Hulkenberg;Nico;Niemcy | ||
z35;Karthikeyan;Narain;Indie | ||
z36;Rosberg;Nico;Niemcy | ||
z37;Panis;Olivier;Francja | ||
z38;de la Rosa;Pedro;Hiszpania | ||
z39;di Resta;Paul;Wielka Brytania | ||
z40;Friesacher;Patrick;Austria | ||
z41;Maldonado;Pastor;Wenezuela | ||
z42;Barrichello;Rubens;Brazylia | ||
z43;Firman;Ralph;Wielka Brytania | ||
z44;Grosjean;Romain;Francja | ||
z45;Kubica;Robert;Polska | ||
z46;Schumacher;Ralf;Niemcy | ||
z47;Zonta;Ricardo;Brazylia | ||
z48;Bourdais;Sebastien;Francja | ||
z49;Buemi;Sebastien;Szwajcaria | ||
z50;Perez;Sergio;Meksyk | ||
z51;Vettel;Sebastian;Niemcy | ||
z52;Glock;Timo;Niemcy | ||
z53;Monteiro;Tiago;Portugalia | ||
z54;Sato;Takuma;Japonia | ||
z55;Liuzzi;Vitantonio;Wlochy | ||
z56;Petrov;Vitaly;Rosja | ||
z57;Baumgartner;Zsolt;Wegry |
Oops, something went wrong.