Notice
Recent Posts
Recent Comments
Link
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Tags more
Archives
Today
Total
관리 메뉴

난 정말 최고야 멋있어

[BOJ] 윷놀이 본문

카테고리 없음

[BOJ] 윷놀이

n00bh4cker 2020. 1. 8. 21:37
#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;
	}
}