Skip to content

Instantly share code, notes, and snippets.

View auduchinok's full-sized avatar

Eugene Auduchinok auduchinok

View GitHub Profile
#include "stdafx.h"
#include <iostream>
#include <omp.h>
using namespace std;
int main()
{
const int n = 10;
int *mArray = new int[n * n];
# Eugene Auduchinok, 2015
# Solution for some Stepic task
require 'prime'
def count_primes
count = 0
(0...512).each do |index|
bits = to_bits index
revert :: L a -> L a
revert N = N
revert (O a x b) = O (revert b) x (revert a)
revert (E a b) = E (revert b) (revert a)
instance (Show a) => Show (L a) where
show N = "[]"
show x = "[" ++ (init $ show' x) ++ "]" where
show' N = ""
show' (E a b) = show' a ++ show' b
data Tsil a = Lin | Snoc (Tsil a) a
deriving Show
foldr' :: (a -> b -> b) -> b -> Tsil a -> b
foldr' f a Lin = a
foldr' f a (Snoc xs x) = foldr' f (f x a) xs
foldl' :: (b -> a -> b) -> b -> Tsil a -> b
# Russian. Updated 2014-04-01
ru:
admin:
js:
true: 'True'
false: 'False'
is_present: 'Не пустое'
is_blank: 'Пустое'
date: 'Дата ...'