ExamI
谷口作
任意の文字列を入力させ, それが回文であるかどうかを判定する関数を作成せよ.
(回文とは,10101,123454321のように前から読んでも後ろから読んでも同じ文のことである.)
また,この解答では reverse を使用してはならない.
[出力結果の例] [ Thu Jun 02 15:54 2011 ] ~/Excer/Test% ruby anagram.rb Judge if it's an anagram. Please type a string. >>10101 true : It's one of anagrams. [ Thu Jun 02 15:55 2011 ] ~/Excer/Test% ruby anagram.rb Judge if it's an anagram. Please type a string. >>101010 false : It's not an anagram.
山本作
以下の数字が記述されたファイルを読み込み,素数のみを配列に格納し,表示させよ. 表示する値は,重複してはいけない. なお,ファイルを直接操作してはいけない.
4 18 42 17 68 41 997 402 24 76 51 41 17
正木作
コマンドラインから正の整数 x と y を受け取り,2数の最大公約数を求めよ. Answer-I
西谷作
時間を持て余したらチャレンジしてください.これ
Keyword(s):
References: