Skip to content

Instantly share code, notes, and snippets.

View paul-ihnatolia's full-sized avatar

Paul paul-ihnatolia

  • Uzhgorod, Ukraine
View GitHub Profile
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# Author: seniorihor (12.03.2012)
class MyArray
def initialize(arr)
@array = arr.clone()
@max_positive = 0
@max_minimum = 0
end
@paul-ihnatolia
paul-ihnatolia / general.rb
Created March 11, 2012 22:43 — forked from seniorihor/general.rb
Рішення задачі "Приїзд генерала" з http://codeforces.ru/contest/144/problem/A
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# Aurhor: seniorihor and vertoldo (12.03.2012)
class General
def initialize(quantity, numbers)
@quantity = quantity
@numbers = numbers
@posMensh=0
@posBilsh=0