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
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <string> | |
#include <numeric> // -std=c++17 | |
// W <numeric> jest m. in. NWD (GCD) | |
#include <cmath> | |
using namespace std; | |
vector<int> liczby; |
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
Dane do zadania dostępne są pod adresem: | |
https://arkusze.pl/maturalne/informatyka-2014-maj-matura-rozszerzona-zalaczniki.zip |
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
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <string> | |
#include <numeric> // -std=c++17 | |
// W <numeric> jest m. in. NWD (GCD) | |
using namespace std; | |
vector<string> liczby; |
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
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <string> | |
#include <numeric> // -std=c++17 | |
// W <numeric> jest m. in. NWD (GCD) | |
using namespace std; | |
vector<string> liczby; |
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
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <fstream> | |
#include <bitset> | |
using namespace std; | |
// Ułatwiamy sobie życie: liczba odczytana z pliku będzie reprezentowana jednocześnie jako | |
// ciąg znaków (postać binarna) i wartość dziesiętna. | |
struct liczba { |
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
# -*- coding: utf-8 -*- | |
import cwiid | |
import pygame | |
import time | |
import random | |
print 'Press 1+2 on your Wiimote now...' | |
wm = cwiid.Wiimote() | |
time.sleep(1) |
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
#include <LiquidCrystal.h> | |
const int trigPin = 8; | |
const int echoPin = 9; | |
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2; | |
LiquidCrystal lcd(rs, en, d4, d5, d6, d7); | |
void setup() { | |
lcd.begin(16, 2); | |
lcd.noCursor(); |
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
#include <LiquidCrystal.h> | |
#define CZAS 100 | |
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2; | |
LiquidCrystal lcd(rs, en, d4, d5, d6, d7); | |
void show_monkey(byte x, byte y, int time_disp) { | |
lcd.setCursor(x, y); | |
lcd.print("@"); |
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
void setup() { | |
pinMode(LED_BUILTIN, OUTPUT); | |
Serial.begin(9600); | |
} | |
int i = 0; | |
void loop() { | |
Serial.println("Toss a letter to your teacher:"); | |
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
dofile("libPCF8574.lua") | |
-- V0 - układ PCF8574 pod adresem addr_1 | |
-- V1 - układ PCF8574 pod adresem addr_2 | |
local Blynk = require("bl_nodemcu") | |
local config = { | |
auth = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", -- token aplikacji i urządzenia | |
ssid = "xxxxxxxxxxxxxxxxxxxx", | |
pwd = "xxxxxxxxxxxxxxxxxxxx", | |
} |
NewerOlder