This file contains 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 <iostream> | |
using namespace std; | |
int main() | |
{ | |
setlocale(LC_ALL, "Russian"); | |
int mass [15]; | |
int sr=0, j=0; | |
for (int i=0;i<15;i++) | |
{ |
This file contains 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
program clock; | |
var | |
C: Integer; { часы } | |
M: Integer; { минуты } | |
S: Integer; { секунды } | |
NEW_C: Integer; { часы через 15 секунд } | |
NEW_M: Integer; { минуты через 15 секунд } | |
NEW_S: Integer; { секунды через 15 секунд } |
This file contains 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
program matr; | |
type | |
matrix = array [1..5, 1..3] of integer; | |
var | |
a: matrix; { двумерный массив } | |
i, j: integer; { индексы массива } | |
{ количество элементов массива, которые без остатка | |
делятся на собственный индекс (строки или столбца } |
This file contains 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 <iostream> | |
#include <cmath> | |
using namespace std; | |
// Найти значение выражения | |
double get_expr_val(double a, double b, double x, double y, double z) | |
{ | |
double part1 = log(a + b); | |
double part2 = pow(log(x + y), 3) / log(z + 2); |
This file contains 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 <iostream> | |
#include <cmath> | |
#include <cstdlib> | |
using namespace std; | |
// Проверяет, четное ли число | |
bool is_even(int num) | |
{ | |
return num % 2 == 0; |
This file contains 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
#!/usr/bin/env python | |
#!-*- coding: utf-8 -*- | |
import time | |
import sys | |
class TestObject: | |
def __del__(self): | |
print "Destructor occured..." |
This file contains 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
#!/usr/bin/env python3 | |
import sys | |
LOGIC_OPERATIONS = ["and", "or", "not"] | |
class ImaginaryVar(object): | |
"""Мнимая математическая переменная""" |
This file contains 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
<?php | |
// Разрешенные для загрузки mime-типы файлов | |
$upload_allow_mimetypes = array( | |
"image/png", | |
"image/jpeg", | |
); | |
// Разрешенные для загрузки расширения | |
$upload_allow_ext = array("jpg", "png", "jpeg", "jpe"); | |
// максимальный размер картинки (в байтах) |
This file contains 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
#!/usr/bin/env python3 | |
def main(): | |
"""Вычисляет коллизии вариантов у студентов | |
Вариант определяется по сумме двух последних цифр | |
номера зачетки | |
""" | |
filename = 'list_auz_studbook.txt' |
This file contains 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
-- phpMyAdmin SQL Dump | |
-- version 3.5.8.1 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Хост: localhost | |
-- Время создания: Янв 27 2016 г., 15:17 | |
-- Версия сервера: 5.5.37-0ubuntu0.13.10.1 | |
-- Версия PHP: 5.5.3-1ubuntu2.6 | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |