結果

問題 No.701 ひとりしりとり
ユーザー mizo
提出日時 2018-07-01 18:02:51
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 249 bytes
コンパイル時間 53 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 20,380 KB
最終ジャッジ日時 2024-07-01 01:14:53
合計ジャッジ時間 7,694 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 10 TLE * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

before = "s"
word = []

(gets.to_i - 1).times do
	after = (0..8).map{ ('a'..'m').to_a[rand(12)] }.join
	newword = before + after
	if word.include?(newword)
		redo
	else 
		puts newword
		word << newword
	end

	before = after
end

puts before + "n"

0