제출 #1301608

#제출 시각아이디문제언어결과실행 시간메모리
1301608Faisal_SaqibBridž (COCI17_bridz)C++20
50 / 50
2 ms580 KiB
#include <iostream> #include <map> using namespace std; int main() { ios::sync_with_stdio(0); cout.tie(0); cin.tie(0); int n; cin>>n; map<char,int> tp; tp['A']=4; tp['K']=3; tp['Q']=2; tp['J']=1; tp['X']=0; int sm=0; while(n--) { string s; cin>>s; for(auto x:s)sm+=tp[x]; } cout<<sm<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...