'알고리즘' 태그의 글 목록 (14 Page)
본문 바로가기
728x90
반응형

알고리즘250

21.10.20_11315-오목판정 소스 코드 #include #include #include using namespace std; #define SIZE 21 int N;// 바둑판 크기 char board[SIZE][SIZE]; int dy[] = { -1,-1,0,1,1,1,0,-1 }; int dx[] = { 0,1,1,1,0,-1,-1,-1 }; int answer; void init();//초기 화면 및 초기 입력 bool safeZone(int y, int x);//범위 체크 void playGame();//게임 시작 int main() { int test_case; int T; scanf("%d", &T); for (test_case = 1; test_case 2021. 10. 21.
2021.10.20_11856-반반 소스코드 #include #include #include using namespace std; int alphabet[27]; int answer;//결과 값 저장 void init();//초기화 및 초기입력 int main(int argc, char** argv) { int test_case; int T; scanf("%d", &T); for (test_case = 1; test_case 2021. 10. 21.
2021.10.19_12004-구구단1 소스코드 #include #include #include using namespace std; int A, answer; int num[82]; void init();//초기화 및 초기 입력 void nineNine1();//구구단1 int main(int argc, char** argv) { int test_case; int T; scanf("%d", &T); /* 여러 개의 테스트 케이스가 주어지므로, 각각을 처리합니다. */ for (test_case = 1; test_case 2021. 10. 19.
2021.10.18_12741-두전구 사실 이게 왜 14.83퍼센트인지 모르겠지만 무튼 아주 쉽게 풀 수 있음 소스코드 #include #include #include using namespace std; int chk[101]; int A, B, C, D; int answer;//결과값 void init();//초기화 void lightChk();//불켜기 int main(int argc, char** argv) { int test_case; int T; cin >> T; for (test_case = 1; test_case 2021. 10. 18.
728x90
반응형