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 <ncurses.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| // Определяем размеры поля (Ширина и Высота) | |
| #define W 80 | |
| #define H 25 | |
| // Прототипы функций (объявляем заранее для структурного стиля) | |
| int init_grid(int grid[H][W]); |
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. I am Groot, путь Windows и расчет с PI | |
| #include <stdio.h> | |
| int main(void) { | |
| printf("\"I am Groot\" (c)Groot"); | |
| printf("C:\\WINDOWS\\\n"); | |
| int x; | |
| double pi = 3.141; | |
| if (scanf("%d", &x) == 1 && getchar() == '\n') { | |
| printf("%.2f", pi * x); | |
| } else { |
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. I am Groot, путь Windows и расчет с PI | |
| #include <stdio.h> | |
| int main(void) { | |
| printf("\"I am Groot\" (c)Groot"); | |
| printf("C:\\WINDOWS\\\n"); | |
| int x; | |
| double pi = 3.141; | |
| if (scanf("%d", &x) == 1 && getchar() == '\n') { | |
| printf("%.2f", pi * x); | |
| } else { |
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
| import tkinter as Tkinter | |
| counter = -1 | |
| running = False | |
| def counter_label(label): | |
| def count(): | |
| if running: | |
| global counter |
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
| import tkinter as Tkinter | |
| counter = -1 | |
| running = False | |
| def counter_label(label): | |
| def count(): | |
| if running: | |
| global counter |
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
| import numpy as np | |
| def nonlin(x,deriv=False): | |
| if(deriv==True): | |
| return f(x)*(1-f(x)) | |
| return 1/(1+np.exp(-x)) | |
| X = np.array([[0,0,1], | |
| [0,1,1], |
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
| Empty file |