로딩
요청 처리 중입니다...

[c++]백준 10801 카드게임

 [c++]백준 10801 카드게임

#include using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int card[2][10] = {}; int acnt = 0; int bcnt = 0; for (int i = 0; i < 2; i++) { for (int j = 0; j < 10; j++) { cin >> card[i][j]; } } for (int i = 0; i < 10; i++) { if (card[0][i] > card[1][i]) acnt++; else if (card[0][i] < card[1][i]) bcnt++; } if (acnt > bcnt) cout << "A" << '\n'; else if (acnt < bcnt) cout << "B" << '\n'; else cout << "D"<< '\n'; }...