#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define MAX 500 int main() { int value[MAX] = { 0 }; int a,b,num; scanf("%d", &num); for (int i =&nbs...