Submit Time:2024-03-26 21:35:12

运行 ID: 44071

#include<bits/stdc++.h> using namespace std; int main() { string s; cin>>s; int sum=0; if(s[0]=='D'){ sum+=30; } if(s[1]=='C'){ sum+=30; } if(s[2]=='B'){ sum+=30; } if(s[3]=='A'){ sum+=30; } if(s[4]=='D'){ sum+=30; } else{ sum+=0; } cout<<sum; return 0; }