結果

問題 No.701 ひとりしりとり
ユーザー finefine
提出日時 2018-06-15 22:30:03
言語 Ruby
(3.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 251 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 11,392 KB
実行使用メモリ 15,460 KB
最終ジャッジ日時 2023-09-13 04:49:52
合計ジャッジ時間 4,618 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,184 KB
testcase_01 AC 82 ms
15,044 KB
testcase_02 AC 84 ms
15,116 KB
testcase_03 AC 84 ms
15,188 KB
testcase_04 AC 84 ms
15,300 KB
testcase_05 AC 84 ms
15,152 KB
testcase_06 AC 84 ms
15,116 KB
testcase_07 AC 83 ms
15,300 KB
testcase_08 AC 85 ms
15,276 KB
testcase_09 AC 105 ms
15,460 KB
testcase_10 AC 308 ms
15,092 KB
testcase_11 TLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:11: warning: assigned but unused variable - foo
Syntax OK

ソースコード

diff #

def hoge() 
    s = ""
    18.times do
        s += (rand(26) + ?a.ord).chr
    end
    return s
end

n = gets.to_i
n.times do |i|
    foo = hoge()
    if i + 1 == n
        puts "a" + hoge() + "n"
    else
        puts "a" + hoge() + "a"
    end
end
0