#include <stdio.h> #include <stdlib.h> int main() { int Buff[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; int Times = 0; int tmp = 0; while (scanf("%d", &tmp) != EOF) { Buff[Times++] = tmp; if (Times == 10) { if (Buff[0] > 0 && Buff[1] > 0 &&...