Skip to content

Instantly share code, notes, and snippets.

@sasamijp
Last active December 20, 2015 17:49
Show Gist options
  • Save sasamijp/6171517 to your computer and use it in GitHub Desktop.
Save sasamijp/6171517 to your computer and use it in GitHub Desktop.
# -*- encoding: utf-8 -*-
#Hello World
#        / )
#   (\   / (   /フ
print "He"#\ /   ヽ/ _ノ
print "llo"#◜◔。◔◝ _ノ ギョエーwwww
print ' '#|    ″
puts "World"#ソ    /
# /_、__/
#    // ∪ ∪
#X Cubic
#         / )
#    (\   / (   /フ
#\ /   ヽ/ _ノ
puts gets.to_i**3#◜◔。◔◝ _ノ ギョエーwwww
#|    ″
#ソ    /
# /_、__/
#    // ∪ ∪
#Rectangle
require 'scanf'
a = gets.scanf "%d %d"
x = a[0]
y = a[1]
#          / )
if x == y then# (\   / (   /フ
puts "a == b"# \ /   ヽ/ _ノ
elsif x > y then# ◜◔。◔◝ _ノ ギョエーwwww
puts "a > b"# |    ″
elsif x < y then# ソ    /
puts "a < b"# /_、__/
end#    // ∪ ∪
#Sorting Three Numbers
require 'scanf'
a = gets.scanf "%d %d %d"#◜◔。◔◝整数がおしりにはいってくるギョエーwwww
a.sort!
puts"#{a[0]} #{a[1]} #{a[2]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment