#include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int yukihotel_fee =0; int anotherhotel_fee =0; int n=0; int roomnumber[1000] ={}; cin>>yukihotel_fee>>anotherhotel_fee>>n; int reservation =0; int overbook =0; for(int i=0; i>reservation; if(roomnumber[reservation] ==0){ roomnumber[reservation]++; }else { overbook++; } } cout<<(yukihotel_fee+anotherhotel_fee)*overbook<