Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
44071 WZH 选择题判定 C++ Accepted 0 MS 248 KB 311 2024-03-26 21:35:12

Tests(1/1):


#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; }


Judgement Protocol: