From 0e8a2ea64fe40bf7202e3c07b56d6146b414204f Mon Sep 17 00:00:00 2001 From: joker Date: Tue, 12 Sep 2023 10:50:36 +0300 Subject: [PATCH] modified: .gitignore modified: components/mdx-components.tsx new file: components/video.tsx new file: content/posts/informatics/python-data-types-solution.mdx new file: content/posts/informatics/word-creating-tables.mdx modified: content/posts/olimp/practice-test-10-11-robotics.mdx modified: content/posts/olimp/practice-test-5-6-robotics.mdx --- .gitignore | 1 + components/mdx-components.tsx | 3 +- components/video.tsx | 22 +++++++++ .../python-data-types-solution.mdx | 47 +++++++++++++++++++ .../informatics/word-creating-tables.mdx | 33 +++++++++++++ .../olimp/practice-test-10-11-robotics.mdx | 2 +- .../olimp/practice-test-5-6-robotics.mdx | 2 +- 7 files changed, 107 insertions(+), 3 deletions(-) create mode 100644 components/video.tsx create mode 100644 content/posts/informatics/python-data-types-solution.mdx create mode 100644 content/posts/informatics/word-creating-tables.mdx diff --git a/.gitignore b/.gitignore index bde1d80..ceacce1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ /node_modules /.pnp .pnp.js +/public/informatica # testing /coverage diff --git a/components/mdx-components.tsx b/components/mdx-components.tsx index a8a1b88..3f3818a 100644 --- a/components/mdx-components.tsx +++ b/components/mdx-components.tsx @@ -5,6 +5,7 @@ import Balancer from 'react-wrap-balancer'; import { Callout } from '@/components/callout'; import { CodeBlock } from '@/components/code-block'; import { TableOfContents } from '@/components/table-of-contents'; +import { Video } from '@/components/video'; import { cn } from '@/lib/utils'; /** @@ -83,4 +84,4 @@ function pre({ children }: React.HTMLProps) { return {children}; } -export const MDXComponents = { a, p, img, pre, TableOfContents, Callout }; +export const MDXComponents = { a, p, img, pre, TableOfContents, Callout, Video }; diff --git a/components/video.tsx b/components/video.tsx new file mode 100644 index 0000000..e081bd7 --- /dev/null +++ b/components/video.tsx @@ -0,0 +1,22 @@ +import { useState } from 'react'; +import { Bookmark, ChevronDown } from 'lucide-react'; + +import { cn } from '@/lib/utils'; + +type TableOfContentsProps = { + children: React.ReactNode; + title: string; + src: string; +}; + +export function Video({ children, title, src }: TableOfContentsProps) { + + + return ( +
+ +
+ ); +} diff --git a/content/posts/informatics/python-data-types-solution.mdx b/content/posts/informatics/python-data-types-solution.mdx new file mode 100644 index 0000000..66c01a5 --- /dev/null +++ b/content/posts/informatics/python-data-types-solution.mdx @@ -0,0 +1,47 @@ +--- +title: Python. Типы данных. +excerpt: Python. Урок 1. Решение математической задачи на языке Python. +date: '2023-09-12' +tags: + - Информатика + - Программирование + - Python +--- +## Задание: + +#### Вам необходимо написать программу на языке Python для решения следующей задачи: + +Робот-марафонец начинает движение из точки A и двигается по пятиугольному маршруту, состоящему из 5 сторон по 200 метров каждая. Если диаметр колеса робота составляет 40 см, сколько оборотов каждого колеса робота он сделает, чтобы вернуться в точку A? + +## Решение: + 1. Найдем длину пятиугольного маршрута, который состоит из 5 сторон по 200 метров каждая. Общая длина маршрута равна 5 * 200 метров = 1000 метров. + 2. Теперь, чтобы найти, сколько оборотов делает колесо робота, чтобы пройти 1000 метров, мы можем использовать формулу: + + * Обороты = Длина маршрута / Длина окружности колеса + + * Длина окружности колеса можно найти с помощью формулы: Длина окружности = π * Диаметр колеса. + + 3. Подставим значения и найдем количество оборотов: + +```python + import math + # Длина маршрута в метрах + длина_маршрута = 1000 + + # Диаметр колеса в метрах (переведенный из сантиметров) + диаметр_колеса = 40 / 100 + + # Найдем длину окружности колеса + длина_окружности_колеса = math.pi * диаметр_колеса + + # Найдем количество оборотов колеса + количество_оборотов = длина_маршрута / длина_окружности_колеса + + # Выведем результат + print(f"Чтобы вернуться в точку A, робот сделает {количество_оборотов} оборотов колеса.") +``` + + + + +[На главную](/) \ No newline at end of file diff --git a/content/posts/informatics/word-creating-tables.mdx b/content/posts/informatics/word-creating-tables.mdx new file mode 100644 index 0000000..e7e8ecc --- /dev/null +++ b/content/posts/informatics/word-creating-tables.mdx @@ -0,0 +1,33 @@ +--- +title: Создание таблиц - Microsoft Word +excerpt: Microsoft Word. Урок 1. Создание таблиц с поддержкой специальных возможностей +date: '2023-09-12' +tags: + - Информатика + - MS Word +--- +## Задание: +#### Вам необходимо создать точную копию таблице из задния у себя в документе Microsoft Word + +![`Создание таблицы` {{ w: 1644, h: 324, cap: "Создание таблицы" }}](/informatica/4_6/exercise.png) + +[Пример таблице](/informatica/4_6/exercise.png). + + +Текст + > Спецификации процессоров компании Intel + № Название продукта Состояние Дата выпуска Количество ядер Максимальная тактовая частота в режиме Turbo Базовая тактовая частота процессора Кэш-память + 1 Intel® Core™ i9-13900H Processor Launched Q1'23 14 5,40 GHz 1,80 GHz 24 MB Intel® Smart Cache + 2 Intel® Core™ i9-13900HK Processor Launched Q1'23 14 5,40 GHz 1,80 GHz 24 MB Intel® Smart Cache + 3 Intel® Core™ i5-7260U Launched Q1'17 2 3,40 GHz 2,20 GHz 4 MB + 4 Intel® Core™ i5-7300U Launched Q1'17 4 3,50 GHz 2,50 GHz 6 MB + 5 Intel® Core™ i3-7020U Discontinued Q1'17 2 3,90 GHz 2,20 GHz 3 MB Intel® Smart Cache + 6 Intel® Core™ i3-7100H Launched Q1'17 2 3,00 GHz 2,20 GHz 3 MB Intel® Smart Cache + +## Видео инструкция +