1997-08-19 03:34:40 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
g ()
|
|
|
|
{
|
|
|
|
return '\n';
|
|
|
|
}
|
|
|
|
|
|
|
|
f ()
|
|
|
|
{
|
2000-04-05 16:52:22 -04:00
|
|
|
char s[] = "abcedfg012345";
|
1997-08-19 03:34:40 -04:00
|
|
|
char *sp = s + 12;
|
|
|
|
|
|
|
|
switch (g ())
|
|
|
|
{
|
|
|
|
case '\n':
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
while (*--sp == '0')
|
|
|
|
;
|
|
|
|
sprintf (sp + 1, "X");
|
|
|
|
|
|
|
|
if (s[12] != 'X')
|
|
|
|
abort ();
|
|
|
|
}
|
|
|
|
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
f ();
|
|
|
|
exit (0);
|
|
|
|
}
|