| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1301610 | Muhammad_Aneeq | Bridž (COCI17_bridz) | C++20 | 2 ms | 580 KiB |
#include <bits/stdc++.h>
using namespace std;
inline void solve()
{
int n;
cin>>n;
map<char,int>val;
val['A']=4;
val['K']=3;
val['Q']=2;
val['J']=1;
val['X']=0;
int tot=0;
for (int i=0;i<n;i++)
{
string s;
cin>>s;
for (auto j:s)
tot+=val[j];
}
cout<<tot<<endl;
}
int main()
{
ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
int t=1;
for (int i=1;i<=t;i++)
{
solve();
}
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
