codeforces 431A - Black Square
来源:互联网 发布:手游数据分析 编辑:程序博客网 时间:2024/05/22 17:20
#include <cstdio>#include <iostream>#include <cstring>#include <algorithm>#include <queue>#include <stack>#include <vector>using namespace std;typedef long long ll;int a[5];char str[100000];int main(){ scanf("%d%d%d%d",&a[1],&a[2],&a[3],&a[4]); scanf("%s",str); int s = 0; for(int i = 0;str[i];i++){ int s1 = str[i] - '0'; s += a[s1]; } printf("%d\n",s); return 0;}
0 0
- codeforces 431A - Black Square
- Codeforces 431A Black Square
- codeforces 431A Black Square
- Codeforces #247 (Div. 2) A. Black Square
- Codeforces Round #247 (Div. 2) - A. Black Square
- Codeforces Round #247(Div. 2) A. Black Square 水题
- A-Black Square
- A. Black Square
- A - Black Square
- CodeForces 828B Black Square
- Codeforces 828 B Black Square
- Codeforces Round #247 (Div. 2)a.Black Square,b.Shower Line,c.k-Tree前三题
- Codeforces #423-Div. 2-B. Black Square
- codeforces 828B. Black Square(水题)
- Codeforces Round #423 B. Black Square
- Codeforces #828B: Black Square 题解
- Codeforces Round #423 B. Black Square
- CODEFORCES:A. Theatre Square
- java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
- IOS开发——页面控件拖动
- API消息
- jQuery -> 获取/设置HTML或TEXT内容
- 手机支付宝扫一扫 给郝萌主捐赠
- codeforces 431A - Black Square
- 《艾克与金枪鱼》评测:比滑雪大冒险有趣
- 用httpclient做压力测试时Too many open files的解决办法
- putty的复制 技巧
- 网络视听监管政策规定 网络视听进入TV端的挑战 网络视听政策嬗变的逻辑和未来
- myeclipse在retina里模糊问题的解决方案
- URL重写:RewriteCond指令与RewriteRule 指令格式
- Android重写ViewPager修改滑动灵敏度
- codeforces 431B - Shower Line