답안 #713844

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
713844 2023-03-23T06:03:44 Z Dulguun88 Bridž (COCI17_bridz) C++14
50 / 50
5 ms 376 KB
#include <iostream>
using namespace std;
int main(){   
   int n,cnt=0;
   cin>>n;
   for(int i=1 ; i<=n;i++){
   	for(int j=1;j<=13;j++){
   		char c;
   		cin>>c;
   		if(c=='A') cnt+=4;
   		else{
   			if(c=='K') cnt+=3;
   			else{
   				if(c=='Q') cnt+=2;
   				else{
   					if(c=='J') cnt++;
				   }
			   }
		   }
	   }
   }
   cout<<cnt;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 304 KB Output is correct
5 Correct 0 ms 296 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 2 ms 212 KB Output is correct
9 Correct 4 ms 352 KB Output is correct
10 Correct 5 ms 376 KB Output is correct