모르는거 물어보면서 풀어나가고 있는데
뭔가 게임 튜토리얼이나 스토리 스킵하는듯한 느낌이 들어서 찝찝함
검색하면서 푸는거나 GPT한테 물어보면서 푸는거나 같은거 같긴 한데
ㄹㅇ 치트쓰는거 같잖어
아래는 행렬 문제 코드인데 오늘 GPT로 물어보기 전까지 행렬 입력받는 방법 하나도 몰랐음 ㅠㅠ
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 31 32 33 34 35 36 37 | class One { static void Main() { int[] garosero = Console.ReadLine().Split().Select(int.Parse).ToArray(); int[,] hengyeol_A = new int[garosero[0],garosero[1]]; int[,] hengyeol_B = new int[garosero[0],garosero[1]]; int[,] hengyeol_OUT = new int[garosero[0],garosero[1]]; for (int i = 0; i < garosero[0]; i++) { string[] input = Console.ReadLine().Split(); for (int j = 0; j < garosero[1]; j++) { hengyeol_A[i, j] = int.Parse(input[j]); } } for (int i = 0; i < garosero[0]; i++) { string[] input = Console.ReadLine().Split(); for (int j = 0; j < garosero[1]; j++) { hengyeol_B[i, j] = int.Parse(input[j]); } } for (int i = 0; i < garosero[0]; i++) { for (int j = 0; j < garosero[1]; j++) { hengyeol_OUT[i, j] = hengyeol_A[i, j] + hengyeol_B[i, j]; } } for (int i = 0; i < garosero[0]; i++) { for (int j = 0; j < garosero[1]; j++) { Console.Write(hengyeol_OUT[i, j] + " "); } Console.WriteLine(); } } } | cs |
GPT 쓰면서 문제를 푸는게 진짜 나한테 도움이 되는걸까? 답지를 보고 베끼는게 아닐까???
라는 쓰래기글이였슴
