結果
| 問題 | 
                            No.495 (^^*) Easy
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-04-21 18:06:55 | 
| 言語 | Ruby  (3.4.1)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 129 bytes | 
| コンパイル時間 | 134 ms | 
| コンパイル使用メモリ | 7,424 KB | 
| 実行使用メモリ | 12,288 KB | 
| 最終ジャッジ日時 | 2024-07-20 05:10:40 | 
| 合計ジャッジ時間 | 1,178 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 RE * 1 | 
コンパイルメッセージ
Syntax OK
ソースコード
str = gets
if str=="#" then puts "0 0" end
str.gsub!("(^^*)","l").gsub!("(*^^)","r")
puts "#{str.count("l")} #{str.count("r")}"