結果

問題 No.701 ひとりしりとり
ユーザー 0w10w1
提出日時 2018-10-20 23:54:42
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,040 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 11,388 KB
実行使用メモリ 15,380 KB
最終ジャッジ日時 2023-08-12 05:28:06
合計ジャッジ時間 3,359 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
15,160 KB
testcase_01 AC 77 ms
15,152 KB
testcase_02 AC 78 ms
15,232 KB
testcase_03 AC 79 ms
15,320 KB
testcase_04 AC 75 ms
15,132 KB
testcase_05 AC 74 ms
15,180 KB
testcase_06 AC 77 ms
15,088 KB
testcase_07 AC 78 ms
15,084 KB
testcase_08 AC 79 ms
15,168 KB
testcase_09 AC 89 ms
15,276 KB
testcase_10 AC 171 ms
15,380 KB
testcase_11 AC 1,040 ms
15,360 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

rstring = ->(st) { st + (0...17).map { |i| (?a.ord + rand(26)).chr } .join + st }
n = gets.to_i
(n - 1).times { |i| puts rstring[?a] }
puts rstring[?a] + ?n
0