#include<cstdio>
#include<iostream>
#include<cstring>
#define ll long long
using namespace std;
const int ma=1e5+10;
int main()
{
ll a[5];
ll s=0;
char str[ma];
cin>>a[1]>>a[2]>>a[3]>>a[4];
cin>>str;
ll len=strlen(str);
for(int i=0;i<len;i++)
{
int t=str[i]-'0';
s+=a[t];
}
cout<<s<<endl;
return 0;
}
本文介绍了一款名为BlackSquare的游戏,玩家需根据屏幕上的指示触摸对应区域消除黑方块。通过输入游戏过程中出现黑方块的位置序列及各区域消耗的热量值,计算出完成游戏所需的总热量。
694

被折叠的 条评论
为什么被折叠?



