Type: Default 1000ms 256MiB

D Edit 沈冠彤

No testdata at current.

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

#include<stdio.h>
#include<string.h>
#include<ctype.h>

int l;
char s[105];

int main() {
    while (~scanf("%s",s)) {
        l=strlen(s);
        putchar(s[0]);
        for (int i=1; i<l; ++i) {
            if (isdigit(s[i])^isdigit(s[i-1]))
                putchar(' ');
            putchar(s[i]);
        }
        putchar(' ');
    }
    return 0;
}

7.31日竞赛3班造数据

Not Attended
Status
Done
Rule
IOI
Problem
8
Start at
2025-7-31 18:00
End at
2025-7-31 21:00
Duration
3 hour(s)
Host
Partic.
8