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