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
CREATE OR REPLACE FUNCTION create_record_queue(customer_full_name_in character varying) | |
RETURNS TABLE( | |
customer_full_name character varying, | |
queue_number integer, | |
operator_place character varying | |
) | |
LANGUAGE 'plpgsql' | |
AS $body$ | |
DECLARE | |
next_operator_id integer; |
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
#!/bin/python3 | |
class tree(): | |
def add(self, variable): | |
self.variables.append(variable) | |
def create(self, namespace): | |
namespace.parent = self | |
self.children.append(namespace) |
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
% Тобола К. 2471 - lab1, #6: | |
% Кто одновpеменно большой и темный? X=bear | |
% Есть ли коpичневые маленькие слоны? false. | |
% Есть ли большие и темные медведи? true. | |
% Есть ли чеpный кот? true. | |
% facts: | |
big(bear). | |
big(elephant). | |
small(cat). |
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 formulas as f | |
matrix: list = [ | |
[1/16, 6/16, 1/16], | |
[3/16, 2/16, 3/16], | |
] | |
if __name__ == '__main__': | |
h_a, h_b = f.H(matrix) |
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 <iostream> | |
using namespace std; | |
class rational { | |
private: | |
long long _nom, _denom; | |
long long gcd(long long a, long long b) { | |
if (a * b == 0) return a + b; |
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 <iostream> | |
using namespace std; | |
class rational { | |
private: | |
long long nom; | |
unsigned long long denom; | |
public: | |
rational() { |
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 <iostream> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
int main() { | |
vector<double> arr = {1.9, 1.32, 1.0, 5.8, 5.1, 12.6, 13.2, 13.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
eps = 10 ** -12 | |
a, b, c, d = map(float, input().split()) | |
if abs((a+b) - (c+d)) < eps: | |
print('equals') | |
elif (a+b) - (c+d) > eps: | |
print('a+b greater') | |
elif (a+b) - (c+d) < eps: | |
print('c+d greater') |
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 <iostream> | |
int main() | |
{ | |
int a = 157; | |
int c = 0365; | |
int d = 36'000'000; | |
int e = 0377; | |
int g = 0x3fff; | |
int h = 0X3FFF; |
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 math | |
ru_alphabet = { | |
'а': 8.01, | |
'б': 1.59, | |
'в': 4.54, | |
'г': 1.70, | |
'д': 2.98, | |
'е': 8.45, | |
'ё': 0.04, |
NewerOlder