anonymous No title
No License Ruby
2020年08月05日
Copy Clone
require "json"

class Problem
  attr_accessor :a
  def initialize
    @a = JSON.parse(gets)
  end

  def solve
    a.each_with_object(Hash.new(0)) do |record, ans|
      ans[record["result"]] += 1
    end
  end

  def show(ans)
    ans.each do |key,value|
      puts "#{key}: #{value}"
    end
  end
end

Problem.new.instance_eval do
  show(solve)
end
require "json"

class Problem
  attr_accessor :a
  def initialize
    @a = JSON.parse(gets)
  end

  def solve
    a.each_with_object(Hash.new(0)) do |record, ans|
      ans[record["result"]] += 1
    end
  end

  def show(ans)
    ans.each do |key,value|
      puts "#{key}: #{value}"
    end
  end
end

Problem.new.instance_eval do
  show(solve)
end
anonymous
Anonymous
2021年04月22日
Medicines information for patients. Generic Name. <a href="https://toplyrica.top">order generic lyrica without dr prescription</a> in Canada Best about medication. Get now.
anonymous
Anonymous
2021年04月30日
viagra vs cialis vs levitra <a href="https://mycialistabs.com/">cialis</a> cialis coupon cvs
anonymous
Anonymous
2021年05月02日
generic cialis for sale <a href="https://toptadalafiltabs.com/">were can i buy cialis</a> buying cialis online
anonymous
Anonymous
2021年05月04日
how to write an introduction paragraph for a persuasive essay <a href="https://topessaywriterfas.com/">hook for college essay</a> how to write a college essay if you re boring
anonymous
Anonymous
2021年05月06日
assertive essay service <a href="http://writemyessayslfd.com/">write an analysis essay</a> 500 word essay on customer service
anonymous
Anonymous
2021年05月07日
viagra for women <a href="https://mrviagrashop.com">viagra for woman</a> goodrx sildenafil
anonymous
Anonymous
2021年05月07日
sildenafil india <a href="https://mysildenafilkr.com/">sildenafil costs</a> buy viagra cheapest
anonymous
Anonymous
2021年05月10日
Drugs information for patients. Effects of Drug Abuse. <a href="https://prednisone4u.top">buying prednisone no prescription</a> in the USA. Actual trends of pills. Get now.
anonymous
Anonymous
2021年05月11日
how long before sex should you take cialis <a href="http://tadalafilled.com/">cialis viagra</a> cialis 20 milligram
anonymous
Anonymous
2021年05月11日
business analyst cover letter <a href="http://coverletterforresumetop.com/">cv company</a> cover letter for customer service
anonymous
Anonymous
2021年05月12日
supervisor resume <a href="https://writingacoverletteronline.com/">cover letter for employment</a> bartending resume
anonymous
Anonymous
2021年05月13日
buy viagra online cheap <a href="https://edviagramaster.net/">sildenafil 20mg</a> viagra alternatives
anonymous
Anonymous
2021年05月15日
sildenafil 20mg <a href="https://sildenafilviagratop.com">viagra canadian pharmacy ezzz</a> otc viagra
anonymous
Anonymous
2021年05月15日
eli lilly cialis coupon <a href="https://cialisortadalafil.com/">tadalafil vs cialis</a> purchase cialis
anonymous
Anonymous
2021年05月16日
cialis dose <a href="https://topcialistabs.com/">generic cialis cost</a> does cialis make you bigger
anonymous
Anonymous
2021年05月18日
Medicines information for patients. What side effects? <a href="https://lamictal4u.top">lamictal without insurance</a> in Canada Best what you want to know about meds. Read information now.
anonymous
Anonymous
2021年05月19日
Medicament information. Short-Term Effects. <a href="https://pregabalin24x7.top">buy generic pregabalin without insurance</a> in the USA Best about medicament. Get information here.
anonymous
Anonymous
2021年05月21日
<a href="https://5bz.ru/">базы предприятий россии +по отраслям скачать бесплатно</a>
Output