Last active
December 20, 2015 17:49
-
-
Save sasamijp/6171517 to your computer and use it in GitHub Desktop.
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
# -*- 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