#include<stdio.h> #include<string.h> int main(void) { char buff[10001] = {0}; char a[10001] = {0}; int x = 0; int y = 0; int len = 0; int sum = 0; fgets(buff,10001,stdin); if('\n' == buff[strlen(buff)-1]) { buff[strlen(buff)-1] = '\0'; } ...