some more solves

This commit is contained in:
2025-05-10 16:10:00 +03:00
parent 0cb745c9a1
commit 1924ca48db
11 changed files with 219 additions and 54 deletions
+6 -5
View File
@@ -13,10 +13,15 @@ int main() {
int old = c;
c = getchar();
if (!(c == EOF || !isdigit(c))) {
if (isdigit(c)) {
continue;
}
if (c == EOF) {
putchar(old);
break;
}
putchar(old);
} else if (isdigit(c)) {
is_num = true;
@@ -28,9 +33,5 @@ int main() {
c = getchar();
}
if (c != '\n') {
putchar('\n');
}
return 0;
}