Skip to content

Instantly share code, notes, and snippets.

View Zerumi's full-sized avatar
💻
ITMO University CSE student

Zerumi Zerumi

💻
ITMO University CSE student
View GitHub Profile
// Java Hamming code alghoritm
package io.github.zerumi;
import java.util.Arrays;
import java.util.Scanner;
import java.util.stream.IntStream;
public class Main {
public static void main(String[] args) {
try {
@Zerumi
Zerumi / (by Zoola) Tipovik1.py
Created January 2, 2023 18:47
/ ! \ Made by Dmitriy Chebanenko
n = int(input())
list = []
ans = []
result = []
d = {a : chr(a + ord('A')) for a in range(0, n)}
for i in range (2**n):
temp = ""
while(len(temp)!=n+1):
temp = input()
temp = temp.replace(' ', '')
// Типовой расчет №2 по дисциплине "Дискретная математика" (программный уровень)
// Преподователь: Гилев Павел Андреевич
import java.util.Scanner;
public class Tipovik2 {
public static void main(String[] args) {
// input
Scanner scanner = new Scanner(System.in);
// Типовой расчет №1 по дисциплине "Дискретная математика" (программный уровень)
// Преподователь: Гилев Павел Андреевич
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// input
Scanner scanner = new Scanner(System.in);
int countVars = scanner.nextInt(); // n
N = 12
time = [4,3,1,7,6,3,1,2,7,8,6,6]
deps = [[0],[0],[1,2],[3],[3],[5],[4,6],[7],[0],[0],[9],[10]]
for i in range(N):
totaltime = time[i]
if (deps[i][0] == 0): continue
maxdeptime = max(time[x - 1] for x in deps[i])
totaltime += maxdeptime
time[i] = totaltime
print(max(time))
namespace ege22new
{
internal class Program
{
static void Main(string[] args)
{
int N = 12; // total ids
int[] time = new int[] { 4, 3, 1, 7, 6, 3, 1, 2, 7, 8, 6, 6 };
List<int[]> dependensens = new()
{
using System;
using System.Runtime.InteropServices;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;
using System.Diagnostics;
using System.Net.Sockets;
using System.Net;
using System.Text;
using System.Net.Http;
@Zerumi
Zerumi / program.cs
Created May 8, 2020 18:00
GDI Problem (for pizhikcoder)
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Forms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Net.Sockets;