1 solutions
-
0
#include<bits/stdc++.h> using namespace std; string str,a,b,c,d,e; int n; int main(){ cin>>str; n=0; a=str[0]; b=str[1]; c=str[2]; d=str[3]; e=str[4]; if(a=="D") n=n+30; if(b=="C") n=n+30; if(c=="B") n=n+30; if(d=="A") n=n+30; if(e=="D") n=n+30; cout<<n; return 0; }
Information
- ID
- 1745
- Time
- 1000ms
- Memory
- 64MiB
- Difficulty
- 5
- Tags
- # Submissions
- 34
- Accepted
- 14
- Uploaded By