結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,244 KB
testcase_01 WA -
testcase_02 AC 80 ms
15,268 KB
testcase_03 AC 82 ms
15,016 KB
testcase_04 AC 81 ms
15,260 KB
testcase_05 AC 84 ms
15,292 KB
testcase_06 AC 84 ms
15,124 KB
testcase_07 AC 84 ms
15,028 KB
testcase_08 AC 84 ms
15,016 KB
testcase_09 AC 82 ms
15,032 KB
testcase_10 AC 84 ms
15,108 KB
testcase_11 AC 84 ms
15,084 KB
testcase_12 AC 83 ms
15,152 KB
testcase_13 AC 83 ms
15,084 KB
testcase_14 AC 85 ms
15,260 KB
testcase_15 AC 83 ms
15,112 KB
testcase_16 AC 83 ms
15,304 KB
testcase_17 AC 82 ms
15,164 KB
testcase_18 AC 83 ms
15,128 KB
testcase_19 AC 87 ms
15,100 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp!
_e = s.index('E')
_e = 0 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