codeforces round#404(div.2) A. Anton and Polyhedrons
来源:互联网 发布:win10 windows安全性 编辑:程序博客网 时间:2024/05/22 10:30
题意:有若干立体图形,每个有固定的边数,计算输入图形的总边数。
水题,暴力求解即可。
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<cstdlib>#include<cmath>#include<set>#include<bitset>#include<map>#include<stack>#include<queue>#include<vector>#include<utility>#define INF 0x3f3f3f3f#define inf 2*0x3f3f3f3f#define llinf 1000000000000000000#define pi acos(-1)#define mod 1000000007using namespace std;typedef long long ll;typedef pair<int,int>P;map<string,int>m;int n,sum=0;string s;int main(){ m["Tetrahedron"]=4;m["Cube"]=6;m["Octahedron"]=8; m["Dodecahedron"]=12;m["Icosahedron"]=20; cin>>n; for(int i=0;i<n;i++) { cin>>s;sum+=m[s]; } cout<<sum; return 0;}
0 0
- Codeforces Round #404 (Div. 2) A. Anton and Polyhedrons
- codeforces round#404(div.2) A. Anton and Polyhedrons
- Codeforces Round#404 A. Anton and Polyhedrons
- 【codeforces 785A】Anton and Polyhedrons
- CodeForces 785A Anton and Polyhedrons【水题】
- A. Anton and Polyhedrons
- Codeforces Round #253 (Div. 2)A. Anton and Letters
- Codeforces Round #253 (Div. 2) A. Anton and Letters
- Codeforces Round #404 (Div. 2) D. Anton and School
- Codeforces Round #404(Div. 2)D. Anton and School
- Codeforces Round #404 (Div. 2) D. Anton and School
- Codeforces Round #404 (Div. 2) B. Anton and Classes
- Codeforces Round #404 (Div. 2) C. Anton and Fairy Tale
- codeforces round#404(div.2) C. Anton and Fairy Tale
- codeforces round#404(div.2) D. Anton and School
- Codeforces Round #404 (Div. 2) Anton and Fairy Talex
- Codeforces Round #404 (Div. 2) D. Anton and School
- Codeforces Round #404 (Div. 2)(D)Anton and School
- 充满神秘色彩的三星手机可折叠手机即将闪亮登场
- 利用nginx 反向代理本地解决跨域问题
- xcode中安装ruby环境
- Linux定时任务Crontab详解
- iOS同步锁
- codeforces round#404(div.2) A. Anton and Polyhedrons
- 天梯赛 5-9 抢红包
- 关于jar生成exe时出现背景图片无法显示的问题
- MySQL 主从复制与读写分离概念及架构分析
- 微信小程序之自定义模态弹窗(带动画)实例 —— 微信小程序实战系列(8)
- 使用crontab,让linux定时执行shell脚本
- Linux内核/Unix环境
- 数据压缩实验二 图像文件的读写和转换(bmp转yuv)
- 使用Struts2自带的验证出现的页面错误问题:No result defined for action action.UserAction and result