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
RUN_TEST = false | |
require 'set' | |
require 'test/unit' if RUN_TEST | |
class Magicka | |
def initialize(combines, opposes) | |
@combs = build_combs(combines) | |
@opps = build_opps(opposes) | |
@counts = Hash.new(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 GCJSolution | |
def initialize(input = STDIN, output = STDOUT) | |
@input = input | |
@output = output | |
end | |
def read_strings | |
@input.gets.chomp.split(' ') | |
end |
NewerOlder