View zaseki.tex
\documentclass[a4j,landscape, uplatex]{jsarticle}
\pagestyle{empty}
\usepackage{sourcesanspro}
\usepackage{tcsourcehans}
\usepackage[truedimen,a4paper,landscape,dvipdfm]{geometry}
\geometry{left=20mm,right=20mm,top=30mm,bottom=25mm}
\renewcommand{\kanjifamilydefault}{\gtdefault}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[dvipdfmx,svgnames]{xcolor}
\usepackage[dvipdfmx]{graphicx}%
View cf410-a.rb
s = gets.chomp
n = s.length
ret = 0
if n == 1 then
puts "YES"
exit
elsif n.odd? then
((n - 1) / 2).times do |i|
if s[i] != s[n - 1 - i] then
ret += 1
View md2pdf.bat
@echo off
pandoc hoge.md -o hoge.pdf --latex-engine=lualatex -V papersize=a4 -V documentclass=bxjsarticle -V classoption=pandoc -V classoption=jafont=ipaex
View abc017-a.rb
res = 0
while line = gets
e, s = line.chomp.split(" ").map(&:to_i)
res += e * s
end
puts res / 10
View abc009-a.rb
n = gets.chomp.to_i
if n % 2 == 0 then
puts n / 2
else
puts n / 2 + 1
end
View agc012-a.rb
n = gets.chomp.to_i
a = gets.chomp.split(" ").map(&:to_i).sort
ret = 0
(3 * n - 2).step(n, -2) do |i|
ret += a[i]
end
puts ret
View abc058-a.rb
a, b, c = gets.chomp.split(" ").map(&:to_i)
if b - a == c - b then
puts "YES"
else
puts "NO"
end
View abc057-a.rb
a, b = gets.chomp.split(" ").map(&:to_i)
if (a + b) >= 24 then
puts (a + b) - 24
else
puts (a + b)
end
View abc012-a.rb
a, b = gets.chomp.split(" ").map(&:to_i)
puts "#{b} #{a}"
View abc010-a.rb
s = gets.chomp
puts s + "pp"