#include <stdio.h>
int main(void) {
char *test = "%123";
int gid = 0;
for (int i = 1; i < len; i++) {
gid = gid * 10 + (test[i] - '0');
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CgljaGFyICp0ZXN0ID0gIiUxMjMiOwoJaW50IGxlbiA9IHN0cmxlbih0ZXN0KTsKCWludCBnaWQgPSAwOwoJZm9yIChpbnQgaSA9IDE7IGkgPCBsZW47IGkrKykgewoJCWdpZCA9IGdpZCAqIDEwICsgKHRlc3RbaV0gLSAnMCcpOwoJfQoJcHJpbnRmKCIlZCIsIGdpZCk7CglyZXR1cm4gMDsKfQo=