이게 틀렸다할 반례가 가려져 있어서 전 잘 모르겠네요.
#include<stdio.h>
#include<math.h>
const int bulbsToSwitch[11][11] = {
{0,4,3,3,4,3,2,2,1,2,6},
{4,0,5,3,2,5,6,2,5,4,2},
{3,5,0,2,5,4,3,5,2,3,5},
{3,3,2,0,3,2,3,3,2,1,5},
{4,2,5,3,0,3,4,2,3,2,4},
{3,5,4,2,3,0,1,3,2,1,5},
{2,6,3,3,4,1,0,4,1,2,6},
{2,2,5,3,2,3,4,0,3,2,4},
{1,5,2,2,3,2,1,3,0,1,7},
{2,4,3,1,2,1,1,2,1,0,6},
{6,2,5,5,4,5,6,4,7,6,0}
};
int main()
{
int t1, nT;
freopen("input.txt","r",stdin); // Reopen stdin from input text file
scanf("%d", ...
- 연습문제 톡
- 날짜
- 2025-01-29 16:17:54
- 작성자
- itkwon
- 댓글
- 1