Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace ConsoleApplication1
{
class Program
@Aduciicba
Aduciicba / dialer_prior_checker.rb
Created March 18, 2016 12:34
Simple code to check dialer's priority calculate algorithm for duplicates result priorities
timezones = (-1..8).to_a
reg_priotity = (0..100).to_a
call_result = (1..3).to_a
call_result_coef = 10000
reg_priotity_coef = 1000
timezones_coef = 100
result = Array.new
class Road
attr_accessor :low_bound,
:high_bound,
:transport_count,
:road_id
end
r = Road.new
r.road_id = 1
class Road
attr_accessor :low_bound,
:high_bound,
:transport_count,
:road_id
end
file = File.open('F:/input.txt', 'r')
i = 0
@Aduciicba
Aduciicba / ssss
Last active August 29, 2015 14:21
example
class Road
attr_accessor :low_bound,
:high_bound,
:transport_count,
:road_id
end
file = File.open('F:/input.txt', 'r')
i = 0
require 'delegate'
class Configg
attr_reader :config_paths
def initialize
@config_paths = []
end