'expert' 태그의 글 목록
본문 바로가기
728x90
반응형

expert10

2021.11.10_7829-보물왕태혁 소스코드 #include #include #include #include using namespace std; int answer; int N; void initData(); void password(); vectornum; int main(int argc, char** argv) { int test_case; int T; cin >> T; for (test_case = 1; test_case 2021. 11. 10.
2021.11.09_7701-염라대왕의이름정렬 소스코드 #include #include #include using namespace std; int N; bool cmp(string a, string b) { if (a.size() == b.size())return a > lifeName; name.push_back(lifeName); } sort(name.begin(), name.end(), cmp); } int main(int argc, char** argv) { int test_ca.. 2021. 11. 9.
2021.11.08_1218-괄호짝짓기 소스코드 #include #include #include #include using namespace std; int N, answer; int chk[300]; string friends; void initData(); void chkFriends(); int main(int argc, char** argv) { int test_case; /* 여러 개의 테스트 케이스가 주어지므로, 각각을 처리합니다. */ for (test_case = 1; test_case > friends; } 설계 사실 그냥 짝이 있는지 검사 한것이라 어려운것 없었음 원래는 제대로 하려면 스택으로 해야함 내생각이지만 실수 ()의 경우 -1 차이 나는것 제대로 체큰 안한 실수 chk를 0으로 초기화 안한 실수 함 문제 링크 121.. 2021. 11. 8.
2021.11.07_8673-코딩토너먼트1 소스코드 #include #include #include #include using namespace std; void initData();//초기화 int K; int answer; vectornum; void codingTest();//코딩 테스트 대결 int main(int argc, char** argv) { int test_case; int T; cin >> T; /* 여러 개의 테스트 케이스가 주어지므로, 각각을 처리합니다. */ for (test_case = 1; test_case 2021. 11. 8.
728x90
반응형