난 정말 최고야 멋있어
[BOJ] 윷놀이 본문
#include <iostream>
using namespace std;
int main()
{
int yoot[4];
int count=0;
for (size_t i = 0; i < 3; i++)
{
cin >> yoot[0] >> yoot[1] >> yoot[2] >> yoot[3];
for (auto& i : yoot)
{
count += i;
}
count = (count == 4) ? 4 : 3 - count;
cout << char('A' + count) << endl;
count = 0;
}
}