結果

問題 No.495 (^^*) Easy
ユーザー akko_yukkyakko_yukky
提出日時 2017-04-21 18:04:59
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 133 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 11,468 KB
実行使用メモリ 15,440 KB
最終ジャッジ日時 2023-09-27 11:01:37
合計ジャッジ時間 1,296 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,188 KB
testcase_01 AC 82 ms
15,116 KB
testcase_02 RE -
testcase_03 AC 81 ms
15,112 KB
testcase_04 AC 82 ms
15,100 KB
testcase_05 AC 83 ms
15,176 KB
testcase_06 AC 84 ms
15,440 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

str = gets
if str.length<3 then puts "0 0" end
str.gsub!("(^^*)","l").gsub!("(*^^)","r")
puts "#{str.count("l")} #{str.count("r")}"  
0