- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
#include "string.h"
#include "stdio.h"
int main()
{
char c[15],*d = &c[0];
scanf("%10u", &c[11]);
sprintf(d, "%u\0",
(c[11]&0xFF)|
((c[12]&0xFF)<<8)|
((c[13]&0xFF)<<16)|
((c[14]&0xFF)<<24));
do if (c[0] > *d) c[0] = *d;
while (*d++, *(d+1) != 0);
printf("%d\n", c[0]-'0');
return 0;
}