Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int a,sum = 0;
- string s;
- cin>>a;
- for(int i=1;i<=a;i++)
- {
- cin>>s;
- if(s=="Tetrahedron") sum+=4;
- else if(s=="Cube") sum+=6;
- else if(s=="Octahedron") sum+=8;
- else if(s=="Dodecahedron") sum+=12;
- else if(s=="Icosahedron") sum+=20;
- }
- cout<<sum<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement