Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Codeforces 785A
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, rez = 0;
- string str;
- cin >> n;
- for( int i = 0; i < n; i++ )
- {
- cin >> str;
- if( str == "Tetrahedron" ){ rez += 4;}
- else if( str == "Cube" ){ rez += 6; }
- else if( str == "Octahedron" ){ rez += 8; }
- else if( str == "Dodecahedron" ){ rez += 12; }
- else if( str == "Icosahedron" ){ rez += 20; }
- }
- cout << rez;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement