본문 바로가기
Thinking/BAEKJOON

C++ BAEKJOON 3003번 킹, 퀸, 룩, 비숍, 나이트, 폰

by Dev_카페인 2022. 8. 15.
반응형

[C++] BAEKJOON 3003번 : 킹, 퀸, 룩, 비숍, 나이트, 폰

 

#include <iostream>
using namespace std;


int main()
{

	ios_base::sync_with_stdio(false);
	//cin.tie(NULL);

	int k, q, l, v, n, p;

	cin >> k >> q >> l >> v >> n >> p;

	k = 1 - k;
	q = 1 - q;
	l = 2 - l;
	v = 2 - v;
	n = 2 - n;
	p = 8 - p;

	cout << k << " " << q << " " << l << " " << v << " " << n << " " << p;

	return 0;
}

 

반응형