結果

問題 No.3020 サンシャイン◯崎
ユーザー maimai
提出日時 2017-03-31 22:52:23
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 11,372 KB
実行使用メモリ 15,372 KB
最終ジャッジ日時 2023-08-25 02:00:11
合計ジャッジ時間 2,888 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,280 KB
testcase_01 WA -
testcase_02 AC 81 ms
15,220 KB
testcase_03 AC 80 ms
15,108 KB
testcase_04 RE -
testcase_05 AC 82 ms
15,112 KB
testcase_06 AC 82 ms
15,028 KB
testcase_07 AC 81 ms
15,124 KB
testcase_08 AC 83 ms
15,144 KB
testcase_09 AC 81 ms
15,148 KB
testcase_10 AC 82 ms
15,172 KB
testcase_11 AC 83 ms
15,152 KB
testcase_12 AC 82 ms
15,372 KB
testcase_13 AC 81 ms
15,108 KB
testcase_14 AC 82 ms
15,136 KB
testcase_15 AC 83 ms
15,296 KB
testcase_16 AC 82 ms
15,208 KB
testcase_17 AC 84 ms
15,220 KB
testcase_18 AC 82 ms
15,164 KB
testcase_19 AC 82 ms
15,284 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp!

_e = s.index('E')
_e = s.rindex('Y')+1 unless _e
_a = s.index('A',_e+1)
_a = _e unless _a
_h = s.index('H',_a+1)
_h = _a unless _h
_b = s.index('!',_h+1)
_b = _h unless _b

puts [_e,_a-_e,_h-_a,_b-_h,s.size-_b]*" "
0