diff --git a/a1/program.c b/a1/program.c index 531c295..e64b6ec 100644 --- a/a1/program.c +++ b/a1/program.c @@ -9,7 +9,7 @@ int main() { char uloha[MAX_LINE_LENGTH]; while (fgets(uloha, MAX_LINE_LENGTH, stdin) != NULL) { - if (strlen(uloha) <= 1) { + if (strlen(uloha) == 1 && uloha[0] == '\n') { printf("OK\n"); continue; }