#include #include #include #include using namespace std; int main(void) { int K, s, t; int stemp, ttemp; int money[50]; bool found; fstream in; in.open("money.in"); in>>K; for(int k=0; k>s>>t; for(int i=0; i>stemp>>ttemp; money[stemp-1] += ttemp; } int max=0, second=0; int maxplace; for(int i=0; i 2*max) { max = money[i]; maxplace = i+1; } else if(money[i] > second) { second = money[i]; } } cout<<"Data Set "< 2*second) { cout<