This file contains hidden or 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
| { | |
| "uuid": "1234", | |
| "source": { | |
| "sourceId": 138, | |
| "jdbcUrl": "jdbc:clickhouse://127.0.0.1:8123/default?compress=false", | |
| "driverName": "ru.yandex.clickhouse.ClickHouseDriver", | |
| "userName": "default", | |
| "password": "", | |
| "query": "SELECT 1e9 + number as ts, '1' as loco_num, '1' as \"Section\", '123' as upload_id, 1 as always_one FROM numbers(50000)", | |
| "datetimeField": "ts", |
This file contains hidden or 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 <stdio.h> | |
| typedef unsigned long long uint64; | |
| uint64 notAFile = 0xFEFEFEFEFEFEFEFE; | |
| uint64 notHFile = 0x7F7F7F7F7F7F7F7F; | |
| uint64 not1Rank = 0xFFFFFFFFFFFFFF00; | |
| uint64 not8Rank = 0x00FFFFFFFFFFFFFF; | |
| uint64 notABFile = 0xFCFCFCFCFCFCFCFC; |
This file contains hidden or 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 <cstdlib> | |
| #include <cstdio> | |
| #include <ctime> | |
| #include <iostream> | |
| using namespace std; | |
| enum Card { | |
| ACE = 1, | |
| TWO, |
This file contains hidden or 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 <cstdlib> | |
| #include <ctime> | |
| using namespace std; | |
| int main() { | |
| srand(time(0)); | |
| const int n = 20; | |
| int a[n]; |
This file contains hidden or 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
| Вариант 1 | |
| 1) Создайте перечисления "Масть" | |
| (со значениями 4-х мастей) и "Ранг" (со значениями | |
| рангов игральных карт: 1=туз,2=двойка и т.д. | |
| до 13(король)). Создайте класс "Игральная карта" | |
| с атрибутами масти и достоинства. Напишите | |
| метод для определения того,бьет ли одна карта | |
| другую (с опциональным параметром козырной | |
| масти). | |
| 2) Создайте модель данных "Трамвайное депо" |
This file contains hidden or 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
| Вариант 1 | |
| 1) Создайте перечисления "Масть" | |
| (со значениями 4-х мастей) и "Ранг" (со значениями | |
| рангов игральных карт: 1=туз,2=двойка и т.д. | |
| до 13(король)). Создайте класс "Игральная карта" | |
| с атрибутами масти и достоинства. Напишите | |
| метод для определения того,бьет ли одна карта | |
| другую (с опциональным параметром козырной | |
| масти). | |
| 2) Создайте модель данных "Трамвайное депо" |
This file contains hidden or 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 <ctime> | |
| #include <string> | |
| #include <fstream> | |
| using namespace std; | |
| template <typename T> | |
| void bubble_sort(T* array, int size) | |
| { |
This file contains hidden or 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 <ctime> | |
| using namespace std; | |
| int main() { | |
| srand(time(0)); | |
| int m = 5; | |
| double** a = new double*[m]; | |
| for (int i = 0; i < m; i++) { |
This file contains hidden or 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 <ctime> | |
| using namespace std; | |
| void merge(int* x, int start, int middle, int end) { | |
| int* temp = new int[end - start]; | |
| int i1 = start, i2 = middle, dest = 0; | |
| while (i1 < middle && i2 < end) { | |
| if (x[i1] < x[i2]) { |
This file contains hidden or 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> | |
| using namespace std; | |
| double det_rec(double** a, int n) { | |
| if (n == 1) return a[0][0]; | |
| double d = 0; | |
| for (int j = 0; j < n; j++) { | |
| double** m = new double*[n - 1]; |
OlderNewer