結果
問題 | No.495 (^^*) Easy |
ユーザー | akko_yukky |
提出日時 | 2017-04-21 18:14:36 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 78 ms / 2,000 ms |
コード長 | 148 bytes |
コンパイル時間 | 50 ms |
コンパイル使用メモリ | 11,552 KB |
実行使用メモリ | 15,424 KB |
最終ジャッジ日時 | 2023-09-27 11:01:42 |
合計ジャッジ時間 | 1,143 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 76 ms
15,020 KB |
testcase_01 | AC | 78 ms
15,352 KB |
testcase_02 | AC | 73 ms
15,088 KB |
testcase_03 | AC | 72 ms
15,156 KB |
testcase_04 | AC | 73 ms
15,252 KB |
testcase_05 | AC | 70 ms
15,228 KB |
testcase_06 | AC | 75 ms
15,424 KB |
コンパイルメッセージ
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