문제설명 소스코드 #include #include using namespace std; int main() { string arr[5]; for(int i = 0; i > arr[i]; for (int i = 0; i i) cout
문제설명 소스코드 #include using namespace std; int main() { int arr[9][9]; int input; int max = -1; int x; int y; for (int i = 0; i > input; arr[i][j] = input; if (arr[i][j] > max) { max = arr[i][j]; x = i; y = j; } } } cout
문제설명 소스코드 #include using namespace std; int main() { int N; int M; cin >> N >> M; int** arr = new int* [N]; //2차원 배열 동적할당을 위한 더블 포인터 선언 for (int i = 0; i > arr[i][j]; //첫 ..
문제설명 소스코드 #include using namespace std; int main() { string majorName; double avg = 0; float sumGrade = 0; double score[20]; float grade[20]; string input; for (int i = 0; i > majorName >> grade[i] >> input; if (input == "A+") score[i] = 4.5; else if (input == "A0") score[i] = 4.0; else if (input == "B+") score[i] = 3.5; else if (input == "B0") score[i] = 3.0; else if (input ==..
문제설명 소스코드 #include using namespace std; int main() { string input; int N; int count = 0; cin >> N; for (int i = 0; i > input; for (int j = 0; j < input.length(); ++j) { for (int u = 0; u < j; ++u) { if ((input[j] == input[u]) && (input[j] != input[j - 1])){ TF = false; break; } } } if (TF) ++count; } cout
문제설명 소스코드 #include using namespace std; int main() { string input; cin >> input; while (true) { if ((input.find("nj") != string::npos) || (input.find("c=") != string::npos) || (input.find("c-") != string::npos) || (input.find("dz=") != string::npos) || (input.find("d-") != string::npos) || (input.find("lj") != string::npos) || (input.find("s=") != string::npos) || (input.find("z=") != string::np..
문제설명 소스코드 #include using namespace std; int main() { int sum = 0; for (int i = 0; i > n; if (n
문제설명 소스코드 #include using namespace std; int main() { int arr[26] = { 0 }; int max = 0; int count = 0; int idx = 0; string input; cin >> input; for (int i = 0; i max){ max = arr[i]; idx = i; } //가장 많이 사용된 알파벳 검사 for (int i = 0; i < 26; ++i) i..