답안 #713841

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
713841 2023-03-23T06:02:55 Z Dulguun88 Bridž (COCI17_bridz) C++14
0 / 50
1 ms 212 KB
#include <iostream>
using namespace std;
int main(){   
   int n,cnt=0;
   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;
}

Compilation message

bridz.cpp: In function 'int main()':
bridz.cpp:5:19: warning: 'n' is used uninitialized in this function [-Wuninitialized]
    5 |    for(int i=1 ; i<=n;i++){
      |                  ~^~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Incorrect 0 ms 212 KB Output isn't correct
3 Incorrect 0 ms 212 KB Output isn't correct
4 Incorrect 0 ms 212 KB Output isn't correct
5 Incorrect 0 ms 212 KB Output isn't correct
6 Incorrect 0 ms 212 KB Output isn't correct
7 Incorrect 0 ms 212 KB Output isn't correct
8 Incorrect 1 ms 212 KB Output isn't correct
9 Incorrect 0 ms 212 KB Output isn't correct
10 Incorrect 0 ms 212 KB Output isn't correct