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 <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <stdint.h> | |
#define N 1000 | |
static size_t K_SIZE = 4; | |
static int64_t COMPLEXITY = 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
from typing import List | |
def get_digit(i: int, d: int, b: int) -> (int, bool): | |
di = i // (b ** d) | |
return int(di % b), di // b == 0 | |
def counting_sort(a: List[int], k: int, d: int, s: int) -> (List[int], int): | |
b = [0] * len(a) |
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
// Artemii Miasoedov | |
// a.miasoedov@innopolis.university | |
#include <iostream> | |
#include <memory> | |
#include <functional> | |
#include <type_traits> | |
#include <sstream> | |
#include <iomanip> | |
#include <limits> | |
#include <cmath> |