結果
| 問題 | No.701 ひとりしりとり |
| コンテスト | |
| ユーザー |
mizo
|
| 提出日時 | 2018-07-01 18:02:51 |
| 言語 | Ruby (4.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 61 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 15,816 KB |
| 最終ジャッジ日時 | 2026-03-21 16:44:39 |
| 合計ジャッジ時間 | 6,003 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 10 TLE * 1 |
コンパイルメッセージ
Syntax OK
ソースコード
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"
mizo