結果
| 問題 |
No.495 (^^*) Easy
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-04-21 18:08:09 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 135 bytes |
| コンパイル時間 | 103 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-07-20 05:10:42 |
| 合計ジャッジ時間 | 1,208 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / 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")}"