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
require 'delegate' | |
class Configg | |
attr_reader :config_paths | |
def initialize | |
@config_paths = [] | |
end |
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
class Road | |
attr_accessor :low_bound, | |
:high_bound, | |
:transport_count, | |
:road_id | |
end | |
file = File.open('F:/input.txt', 'r') | |
i = 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
class Road | |
attr_accessor :low_bound, | |
:high_bound, | |
:transport_count, | |
:road_id | |
end | |
file = File.open('F:/input.txt', 'r') | |
i = 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
class Road | |
attr_accessor :low_bound, | |
:high_bound, | |
:transport_count, | |
:road_id | |
end | |
r = Road.new | |
r.road_id = 1 |
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
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 |
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
using System; | |
using System.Linq; | |
using System.Text; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
namespace ConsoleApplication1 | |
{ | |
class Program |