4차시 문제 8번~15번 풀이 <백준 문제> 8. 단어 공부 그냥 코드 돌리면 된다. 코드는 다음과 같다. #include #include int main() { char arr[1000000]; scanf("%s",arr); int n=strlen(arr); int k,l=0,m,f=0; for(int i=0;i C언어/C언어 4차시 2023.04.17
4차시 문제 1번~7번 풀이 <코드업 문제> 1. 마름모 출력하기 >5 ** * * * * * * * * * * * * * * * * ** 일반적인 별찍기 문제로 이렇게 나오면 된다. 코드는 다음과 같다. #include int main(){ int n; scanf("%d",&n); for(int i=0;i C언어/C언어 4차시 2023.04.17