1157번1 [백준/BOJ] C언어/C++ 1157번 단어 공부 (strupr 에러) #info 카테고리 : 단계별로 풀어보기 - 문자열 파트 난이도 : BRONZE1 사용언어 : C언어/C++ 메모리 : 1980KB 시간 : 16ms #소스코드 /* omyo(yomo) develop */ /* blog : https://omyodevelop.tistory.com */ #include #include #define LEN 1000001 int main(void){ // [INPUT] 문자열 입력 & 알파벳 배열 초기화 char str[LEN]; int alphaArr[26] = {0,}; scanf("%s",&str); // 소문자 → 대문자 변경 for (int i = 0; str[i]; i++) { if(islower(str[i])) str[i] = toupper(str[i]); } .. 2021. 2. 23. 이전 1 다음