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