Skip to content

Instantly share code, notes, and snippets.

View gluschenko's full-sized avatar
:octocat:

Alexander Gluschenko gluschenko

:octocat:
View GitHub Profile
#include <iostream>
#include <fstream>
using namespace std;
/*
Задан целочисленный двухмерный массив a из n строк и m столбцов. Найти номер первого максимального
значения среди отрицательных элементов, расположенных до первого элемента, равного Т. Матрицу рассматривать
по строкам. В случае отсутствия отрицательных или равных Т элементов или невозможности поиска вывести
соответствующие поясняющие сообщения.
#include <iostream>
#include <math.h>
#include <cstdlib>
using namespace std;
double** read(int m, int n){
double** A = (double**)malloc(m * sizeof(double*));
for(int i = 0; i < m; i++){
A[i] = (double*)malloc(n * sizeof(double));
}
#include <iostream>
#include <cstdlib>
using namespace std;
int getMax(int *a, int size){
int n = -2147483648;
for(int i = 0; i < size; i++){
if(a[i] > n) n = a[i];
}
using System;
using System.Collections.Generic;
using UnityEngine;
using Forge;
public class NicknameHUD
{
struct Entity
{
public Vector3 pos;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace GeoEngine
{
public class OffsetExistenceIndex
{
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
body
{
margin: 0;
}
</style>
</head>
@gluschenko
gluschenko / quarks.html
Created November 6, 2017 18:25
Non-canonical model of quark reactions
<style>
body
{
margin: 0;
}
</style>
<div>
using UnityEngine;
using System;
using System.Collections.Generic;
namespace GeoEngine
{
public class WorldEditor
{
World World;
Offset3 SelectionA, SelectionB;
@gluschenko
gluschenko / TimeMachine.cs
Created July 21, 2017 22:20
C# execution timer
using System;
using System.Collections.Generic;
using System.Diagnostics;
public class TimeMachine
{
public static Dictionary<string, Stopwatch> Timers = new Dictionary<string, Stopwatch>();
public static void Start(string name)
{
<style>
body
{
margin: 0;
}
</style>
<div>
<canvas id='LinesX2' width='1024' height='600' style='display: block;'></canvas>
</div>