// test2.c
#include <stdio.h>
int main()
{
int c;
int prev = -1;
if (c == ' ' && c == prev) {
continue;
}
prev = c;
}
return 0;
}
Ly8gdGVzdDIuYwojaW5jbHVkZSA8c3RkaW8uaD4KCmludCBtYWluKCkKewoJaW50IGM7CglpbnQgcHJldiA9IC0xOwoJCgl3aGlsZSAoKGMgPSBnZXRjaGFyKCkpICE9IEVPRikgewoJCWlmIChjID09ICcgJyAmJiBjID09IHByZXYpIHsKCQkJY29udGludWU7CgkJfQoJCXB1dGNoYXIoYyk7CgkJcHJldiA9IGM7Cgl9CglyZXR1cm4gMDsKfQo=