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
| from osgeo import gdal | |
| from osgeo import ogr | |
| from osgeo import osr | |
| from osgeo import gdal_array | |
| from osgeo import gdalconst | |
| import numpy | |
| gdal_data = gdal.Open("wcs_BANDS-S2-L1C_EPSG4326_71.3774871826172_51.091016751587_71.5086364746094_51.1767602213692_2019-05-03T06-35-08_10mX10m.tiff", gdal.GA_ReadOnly) |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace Lab8 | |
| { | |
| class MatrixUtils | |
| { | |
| public static double[,] MulByNumber(double[,] matrix, double num, int rows, int cols) |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace ConsoleApplication82 | |
| { | |
| class Program | |
| { |
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
| package tcp_ip.simplechat; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.io.PrintStream; | |
| import java.net.ServerSocket; | |
| import java.net.Socket; | |
| import java.util.HashSet; | |
| import java.util.Set; |
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
| ''' | |
| Восстановите строку по её коду и беспрефиксному коду символов. | |
| В первой строке входного файла заданы два целых числа k и l через пробел — количество различных букв, | |
| встречающихся в строке, и размер получившейся закодированной строки, соответственно. | |
| В следующих k строках записаны коды букв в формате "letter: code". Ни один код не является префиксом другого. | |
| Буквы могут быть перечислены в любом порядке. В качестве букв могут встречаться лишь строчные буквы латинского алфавита; | |
| каждая из этих букв встречается в строке хотя бы один раз. Наконец, в последней строке записана закодированная строка. | |
| Исходная строка и коды всех букв непусты. Заданный код таков, что закодированная строка имеет минимальный возможный размер. |
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
| package Methods.week2; | |
| import java.util.Arrays; | |
| import java.util.Scanner; | |
| public class GreedyKnapsack { | |
| class Item implements Comparable<Item> { | |
| int cost; | |
| int weight; |
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
| package Methods.week2; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import java.util.PriorityQueue; | |
| import java.util.Scanner; | |
| public class HuffmanCoding { | |
| class Node implements Comparable<Node> { |
NewerOlder