알고리즘
[C] 백준 4999번 : 아!
88dldl
2022. 11. 15. 20:15
https://www.acmicpc.net/problem/4999
4999번: 아!
입력은 두 줄로 이루어져 있다. 첫째 줄은 재환이가 가장 길게 낼 수 있는 "aaah"이다. 둘째 줄은 의사가 듣기를 원하는 "aah"이다. 두 문자열은 모두 a와 h로만 이루어져 있다. a의 개수는 0보다 크거
www.acmicpc.net
<풀이>
#include <stdio.h>
#include <string.h>
int main()
{
char jae[1001]="";
char doctor[1001]="";
scanf("%s",jae);
scanf("%s",doctor);
if(strlen(jae)>=strlen(doctor)){
printf("go");
}
else{
printf("no");
}
return 0;
}