結果

問題 No.784 「,(カンマ)」
ユーザー gemmaro
提出日時 2019-10-17 21:32:22
言語 Ruby
(3.4.1)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 148 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-06-25 01:37:48
合計ジャッジ時間 2,143 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.chomp.chars.reverse
result = []
n.each_slice(3) {|arr|
    result << arr.reverse << ','
}
puts result.reverse.join("").reverse.chop.reverse
0