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