羊肉汤
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
张锦程与高老师吃了羊肉汤,有五种羊肉汤价格分别是a元、b元、c元、d元、e元。请判断张锦程与高老师一共花了多少钱。
格式
输入
第一行有五个数,分别是a、b、c、d、e。第二行有一个只有a、b、c、d、e的字符串S,也就是张锦程与高老师吃的羊肉汤种类。
输出
一个数,也就是高老师与张锦程一共花的钱数。
样例
12 32 55 1 4
accad
135
11 12 13 14 15
ac
24
ZBC001(Zjc Beginner Contest001)(张锦程初学者竞赛001)
- Status
- Done
- Rule
- Ledo
- Problem
- 10
- Start at
- 2024-12-7 0:00
- End at
- 2024-12-14 0:00
- Duration
- 168 hour(s)
- Host
- Partic.
- 9