We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f5422a commit 11d8274Copy full SHA for 11d8274
785A - Anton and Polyhedrons.cpp
@@ -0,0 +1,29 @@
1
+#include<bits/stdc++.h>
2
+using namespace std;
3
+
4
+// Code Written By: Vikash Patel
5
6
+// Codeforces Profile: https://codeforces.com/profile/vikashpatel
7
8
+int main()
9
+{
10
+ int n;
11
+ cin>>n;
12
+ int tFaces=0;
13
+ for(int i=0;i<n;i++)
14
+ {
15
+ string s;
16
+ cin>>s;
17
+ if(s[0]=='T')
18
+ tFaces+=4;
19
+ else if(s[0]=='C')
20
+ tFaces+=6;
21
+ else if(s[0]=='O')
22
+ tFaces+=8;
23
+ else if(s[0]=='D')
24
+ tFaces+=12;
25
+ else
26
+ tFaces+=20;
27
+ }
28
+ cout<<tFaces<<endl;
29
+}
0 commit comments