julie1392   2년 전

#include

int main(void) {

char letter=0;

int count = 1, check=0,first=1;

while ((letter = getchar()) != '\n') {

if (letter == ' ') {

if (first) {

continue;

}

check = 1;

}

else {

if (check == 1) {

count++;

check = 0;

}

first = 0;

}

}

printf("%d", count);

return 0;

} 반례가 뭘까요 ㅠ

byeongkeunahn   2년 전

반례입니다.

댓글을 작성하려면 로그인해야 합니다.