結果

問題 No.3020 サンシャイン◯崎
ユーザー yudedakoyudedako
提出日時 2017-04-01 03:43:19
言語 Ruby
(3.3.0)
結果
AC  
実行時間 129 ms / 1,000 ms
コード長 129 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 11,208 KB
実行使用メモリ 21,152 KB
最終ジャッジ日時 2023-08-25 02:03:10
合計ジャッジ時間 3,073 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,332 KB
testcase_01 AC 86 ms
15,304 KB
testcase_02 AC 81 ms
15,280 KB
testcase_03 AC 80 ms
15,168 KB
testcase_04 AC 79 ms
15,052 KB
testcase_05 AC 129 ms
21,144 KB
testcase_06 AC 82 ms
15,268 KB
testcase_07 AC 81 ms
15,292 KB
testcase_08 AC 96 ms
17,260 KB
testcase_09 AC 95 ms
17,456 KB
testcase_10 AC 119 ms
21,068 KB
testcase_11 AC 106 ms
19,512 KB
testcase_12 AC 119 ms
21,136 KB
testcase_13 AC 118 ms
20,888 KB
testcase_14 AC 118 ms
21,036 KB
testcase_15 AC 109 ms
19,956 KB
testcase_16 AC 107 ms
19,540 KB
testcase_17 AC 121 ms
20,940 KB
testcase_18 AC 121 ms
21,152 KB
testcase_19 AC 121 ms
20,828 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

str = gets.chomp.split(//).group_by{|c|c}
puts ("YEAH!".split(//).map{|char|str.has_key?(char) ? str[char].length : 0}).join(' ')
0